2013-07-29 16:19:24 +08:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
|
|
support
|
|
|
|
)
|
|
|
|
|
2017-05-11 00:20:54 +08:00
|
|
|
add_clang_tool(clang-tidy
|
2013-07-29 16:19:24 +08:00
|
|
|
ClangTidyMain.cpp
|
|
|
|
)
|
2016-07-07 21:19:45 +08:00
|
|
|
add_dependencies(clang-tidy
|
|
|
|
clang-headers
|
|
|
|
)
|
2013-07-29 16:19:24 +08:00
|
|
|
target_link_libraries(clang-tidy
|
2013-12-10 09:41:10 +08:00
|
|
|
clangAST
|
|
|
|
clangASTMatchers
|
2015-03-13 11:47:43 +08:00
|
|
|
clangBasic
|
2013-07-29 16:19:24 +08:00
|
|
|
clangTidy
|
[clang-tidy][Part1] Add a new module Android and three new checks.
Summary:
A common source of security bugs is code that opens a file descriptors without using the O_CLOEXEC flag. (Without that flag, an opened sensitive file would remain open across a fork+exec to a lower-privileged SELinux domain, leaking that sensitive data.).
Add a new Android module and one checks in clang-tidy.
-- open(), openat(), and open64() should include O_CLOEXEC in their flags argument. [android-file-open-flag]
Links to part2 and part3:
https://reviews.llvm.org/D33745
https://reviews.llvm.org/D33747
Reviewers: chh, alexfh, aaron.ballman, hokein
Reviewed By: alexfh, hokein
Subscribers: jbcoe, joerg, malcolm.parsons, Eugene.Zelenko, srhines, mgorny, xazax.hun, cfe-commits, krytarowski
Tags: #clang-tools-extra
Differential Revision: https://reviews.llvm.org/D33304
llvm-svn: 306165
2017-06-24 05:37:29 +08:00
|
|
|
clangTidyAndroidModule
|
2016-04-30 01:58:29 +08:00
|
|
|
clangTidyBoostModule
|
2017-07-14 20:15:55 +08:00
|
|
|
clangTidyBugproneModule
|
2015-10-02 21:27:19 +08:00
|
|
|
clangTidyCERTModule
|
2015-10-06 21:31:00 +08:00
|
|
|
clangTidyCppCoreGuidelinesModule
|
2013-08-04 23:56:30 +08:00
|
|
|
clangTidyGoogleModule
|
2017-03-20 01:23:23 +08:00
|
|
|
clangTidyHICPPModule
|
2013-12-10 09:41:10 +08:00
|
|
|
clangTidyLLVMModule
|
2014-03-05 21:14:32 +08:00
|
|
|
clangTidyMiscModule
|
2015-08-14 21:17:11 +08:00
|
|
|
clangTidyModernizeModule
|
2016-08-03 04:29:35 +08:00
|
|
|
clangTidyMPIModule
|
2015-12-30 18:24:40 +08:00
|
|
|
clangTidyPerformanceModule
|
2014-10-26 09:41:14 +08:00
|
|
|
clangTidyReadabilityModule
|
2013-12-10 09:41:10 +08:00
|
|
|
clangTooling
|
2017-04-13 06:07:47 +08:00
|
|
|
clangToolingCore
|
2013-07-29 16:19:24 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
install(TARGETS clang-tidy
|
|
|
|
RUNTIME DESTINATION bin)
|
|
|
|
|
2015-09-17 22:37:26 +08:00
|
|
|
install(PROGRAMS clang-tidy-diff.py DESTINATION share/clang)
|
|
|
|
install(PROGRAMS run-clang-tidy.py DESTINATION share/clang)
|