2013-07-29 16:19:24 +08:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
2013-12-10 03:27:57 +08:00
|
|
|
Support
|
2013-07-29 16:19:24 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
add_clang_library(clangTidy
|
|
|
|
ClangTidy.cpp
|
|
|
|
ClangTidyModule.cpp
|
2014-01-10 00:31:25 +08:00
|
|
|
ClangTidyDiagnosticConsumer.cpp
|
2014-05-23 00:07:11 +08:00
|
|
|
ClangTidyOptions.cpp
|
2014-02-23 21:43:01 +08:00
|
|
|
|
|
|
|
DEPENDS
|
|
|
|
ClangSACheckers
|
2014-02-26 14:41:29 +08:00
|
|
|
|
|
|
|
LINK_LIBS
|
2013-12-10 09:41:10 +08:00
|
|
|
clangAST
|
|
|
|
clangASTMatchers
|
2013-07-29 16:19:24 +08:00
|
|
|
clangBasic
|
2016-10-18 01:25:02 +08:00
|
|
|
clangFormat
|
2013-12-10 09:41:10 +08:00
|
|
|
clangFrontend
|
2015-08-11 21:11:29 +08:00
|
|
|
clangLex
|
2014-07-17 00:50:17 +08:00
|
|
|
clangRewrite
|
2014-07-14 13:01:53 +08:00
|
|
|
clangSema
|
|
|
|
clangStaticAnalyzerCore
|
2013-11-14 23:49:44 +08:00
|
|
|
clangStaticAnalyzerFrontend
|
2013-12-10 09:41:10 +08:00
|
|
|
clangTooling
|
2014-10-30 08:44:01 +08:00
|
|
|
clangToolingCore
|
2013-07-29 16:19:24 +08:00
|
|
|
)
|
|
|
|
|
[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
|
|
|
add_subdirectory(android)
|
2016-04-30 01:58:29 +08:00
|
|
|
add_subdirectory(boost)
|
2015-10-02 21:27:19 +08:00
|
|
|
add_subdirectory(cert)
|
2015-10-06 21:31:00 +08:00
|
|
|
add_subdirectory(cppcoreguidelines)
|
2013-07-29 16:19:24 +08:00
|
|
|
add_subdirectory(google)
|
2017-03-20 01:23:23 +08:00
|
|
|
add_subdirectory(hicpp)
|
|
|
|
add_subdirectory(llvm)
|
2014-03-05 21:14:32 +08:00
|
|
|
add_subdirectory(misc)
|
2015-08-14 21:17:11 +08:00
|
|
|
add_subdirectory(modernize)
|
2016-08-03 04:29:35 +08:00
|
|
|
add_subdirectory(mpi)
|
2015-12-30 18:24:40 +08:00
|
|
|
add_subdirectory(performance)
|
2017-03-20 01:23:23 +08:00
|
|
|
add_subdirectory(plugin)
|
2014-09-22 18:41:39 +08:00
|
|
|
add_subdirectory(readability)
|
2017-03-20 01:23:23 +08:00
|
|
|
add_subdirectory(tool)
|
2014-08-13 21:57:57 +08:00
|
|
|
add_subdirectory(utils)
|