Controlling clang-tidy during the builds

27 views
Skip to first unread message

Wesolowski, Krzysztof

unread,
Jun 19, 2020, 11:29:52 AM6/19/20
to Android Building
Hello,

I have pretty big codebase, with most of BP modules specifying tidy: true.

This codebase is then included in multiple product variants, and tidy checks are repeated numerous times for no good reason.

Is there a ways to separate running tidy checks from actual build?
Sth like:
NO_TIDY=1 make flashfiles (called for 10 product variants)
ONLY_TIDY=1 cd vendor/... && mma (validates common codebase clang tidy, would run on 11th machine)

BR, 

Krzysztof Wesolowski

Dan Willemsen

unread,
Jun 19, 2020, 2:38:45 PM6/19/20
to Android Building
`tidy: true` always runs clang-tidy. If you only want to run it on specific builds, you can omit that property and instead set WITH_TIDY=true in your environment. Unfortunately, that doesn't let you select which code to run tidy on, it'll be run on anything that is built whenever that environment variable is set.

- Dan

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/VI1P174MB00150A3D4ADDC5ABC91DE86B91980%40VI1P174MB0015.EURP174.PROD.OUTLOOK.COM.
Reply all
Reply to author
Forward
0 new messages