platform_build_soong/cc
Dan Willemsen a03cf6d322 Add clang-tidy support
For every file which we can run clang-tidy (C/C++ clang-built), we add a
new build node that depends on the object file (since clang-tidy does
not export a depfile), and is depended on by the link step. This is
better than how we're doing it in make, since calling tidy can be turned
on or off without needing to rebuild the object files.

This does not attempt to port WITH_TIDY_ONLY from Make, since the way
that it works is broken (due to the lack of a depfile).

Bug: 32244182
Test: WITH_TIDY=true mmma -j bionic/libc
Test: ./soong (Setting ClangTidy: true)
Change-Id: I40bbb5bb00d292d72bf1c293b93080b5f9f6d8ea
2016-10-31 16:21:01 -07:00
..
config Add clang-tidy support 2016-10-31 16:21:01 -07:00
androidmk.go Handle dependencies with export_generated_headers 2016-09-30 01:37:38 +00:00
binary.go Add clang-tidy support 2016-10-31 16:21:01 -07:00
builder.go Add clang-tidy support 2016-10-31 16:21:01 -07:00
cc.go Add clang-tidy support 2016-10-31 16:21:01 -07:00
cc_test.go Add support for building on Darwin hosts 2015-05-07 14:09:48 -07:00
check.go Add clang-tidy support 2016-10-31 16:21:01 -07:00
compiler.go Start using "struct Objects" to store object Paths 2016-10-31 16:18:49 -07:00
gen.go Add support for .proto files 2016-10-27 15:28:09 -07:00
gen_stub_libs.py Add a real parser for the version scripts. 2016-08-01 16:12:40 -07:00
installer.go Expose HostToolPath on the cc module to fix genrule.tool 2016-09-28 17:38:02 -07:00
library.go Add clang-tidy support 2016-10-31 16:21:01 -07:00
linker.go Start using "struct Objects" to store object Paths 2016-10-31 16:18:49 -07:00
makevars.go Add clang-tidy support 2016-10-31 16:21:01 -07:00
ndk_headers.go Add a "license" property to ndk_headers. 2016-10-20 13:30:07 -07:00
ndk_library.go Start using "struct Objects" to store object Paths 2016-10-31 16:18:49 -07:00
ndk_prebuilt.go Start using "struct Objects" to store object Paths 2016-10-31 16:18:49 -07:00
ndk_sysroot.go Add a "license" property to ndk_headers. 2016-10-20 13:30:07 -07:00
object.go Start using "struct Objects" to store object Paths 2016-10-31 16:18:49 -07:00
prebuilt.go Start using "struct Objects" to store object Paths 2016-10-31 16:18:49 -07:00
proto.go Add support for .proto files 2016-10-27 15:28:09 -07:00
pylintrc Don't warn for TODOish comments. 2016-08-01 14:36:22 -07:00
relocation_packer.go Add Relocation Packer support 2016-09-15 03:39:05 +00:00
sanitize.go Don't pass -Wl,--no-undefined to host targets 2016-10-21 18:20:23 +00:00
stl.go Always link libdl with libc++ for the NDK. 2016-09-14 16:50:48 -07:00
strip.go Separate cc.go 2016-07-29 15:17:58 -07:00
test.go Move registration into android package 2016-10-12 14:30:44 -07:00
test_gen_stub_libs.py Add a real parser for the version scripts. 2016-08-01 16:12:40 -07:00
tidy.go Add clang-tidy support 2016-10-31 16:21:01 -07:00
toolchain_library.go Start using "struct Objects" to store object Paths 2016-10-31 16:18:49 -07:00
util.go Add clang-tidy support 2016-10-31 16:21:01 -07:00