llvm-project/clang-tools-extra/clang-tidy
Yan Wang 36206206cd [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-23 21:37:29 +00:00
..
android [clang-tidy][Part1] Add a new module Android and three new checks. 2017-06-23 21:37:29 +00:00
boost [clang-tidy] boost-use-to-string arg expr location bugfix 2016-06-28 08:16:20 +00:00
cert [clang-tidy] When" -fno-exceptions is used", this warning is better to be suppressed. 2017-06-07 17:41:59 +00:00
cppcoreguidelines Spelling mistakes in comments. NFCI. 2017-03-30 13:10:33 +00:00
google Make google-build-using-namespace skip std::.*literals 2017-05-15 17:37:48 +00:00
hicpp [clang-tidy] fix for linker errors in hicpp checks 2017-03-30 12:31:02 +00:00
llvm [clang-tidy] TwineLocalCheck: add param # checking 2017-05-14 04:14:59 +00:00
misc Revert "[clang-tidy] When" -fno-exceptions is used", this warning is better to be suppressed." 2017-06-09 07:34:58 +00:00
modernize [clang-tidy] Fix a false positive in modernize-use-nullptr. 2017-06-23 09:36:49 +00:00
mpi modernize-use-auto NFC fixes 2016-12-14 15:29:23 +00:00
performance [clang-tidy] Use getLocalOrGlobal for the StrictMode option 2017-05-29 13:59:27 +00:00
plugin [clang-tidy][Part1] Add a new module Android and three new checks. 2017-06-23 21:37:29 +00:00
readability [clang-tidy] readability-function-size: fix nesting level calculation 2017-06-16 13:07:47 +00:00
tool [clang-tidy][Part1] Add a new module Android and three new checks. 2017-06-23 21:37:29 +00:00
utils Extend readability-container-size-empty to add comparisons to empty-state objects. 2017-04-24 14:57:09 +00:00
CMakeLists.txt [clang-tidy][Part1] Add a new module Android and three new checks. 2017-06-23 21:37:29 +00:00
ClangTidy.cpp Change getChecksFilter() interface to hide implementation details. 2017-05-17 14:39:47 +00:00
ClangTidy.h [clang-tidy] Add FormatStyle configuration option. 2017-04-06 13:41:29 +00:00
ClangTidyDiagnosticConsumer.cpp Fix 'not all control paths return a value' warning on windows buildbots. 2017-05-18 10:48:23 +00:00
ClangTidyDiagnosticConsumer.h [clang-tidy] Optimize GlobList::contains 2017-05-18 01:13:51 +00:00
ClangTidyModule.cpp Change getChecksFilter() interface to hide implementation details. 2017-05-17 14:39:47 +00:00
ClangTidyModule.h [clang-tools-extra] Format sources with clang-format. NFC. 2016-11-08 07:50:19 +00:00
ClangTidyModuleRegistry.h Reapply r276973 "Adjust Registry interface to not require plugins to export a registry" 2016-08-05 11:01:08 +00:00
ClangTidyOptions.cpp [clang-tidy] Add FormatStyle configuration option. 2017-04-06 13:41:29 +00:00
ClangTidyOptions.h [clang-tidy] Add FormatStyle configuration option. 2017-04-06 13:41:29 +00:00
add_new_check.py [clang-tidy] Rename modernize-use-default to modernize-use-equals-default 2016-12-01 17:24:42 +00:00
rename_check.py [clang-tidy] Improve rename_check.py. 2016-11-08 11:43:50 +00:00