llvm-project/clang-tools-extra/unittests/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
..
CMakeLists.txt [clang-tidy][Part1] Add a new module Android and three new checks. 2017-06-23 21:37:29 +00:00
ClangTidyDiagnosticConsumerTest.cpp [clang-tidy] Fix treating non-space whitespaces in checks list. 2017-03-23 16:32:06 +00:00
ClangTidyOptionsTest.cpp [clang-tidy] Merge ExtraArgs(Before) instead of overriding them. 2016-08-23 14:48:29 +00:00
ClangTidyTest.h Fix clang-tidy crash when a single fix is applied on multiple files. 2016-08-09 07:54:49 +00:00
GoogleModuleTest.cpp Fix false positive on anonymous namespaces in headers. 2015-03-24 15:21:45 +00:00
IncludeInserterTest.cpp Correctly classify main file includes if there is a prefix added 2017-01-12 15:31:50 +00:00
LLVMModuleTest.cpp [clang-tidy] Reword the "code outside header guard" warning. 2017-02-21 11:25:45 +00:00
MiscModuleTest.cpp [clang-tidy] misc-argument-comment non-strict mode 2016-08-04 14:54:54 +00:00
NamespaceAliaserTest.cpp modernize-use-auto NFC fixes 2016-12-14 15:29:23 +00:00
OverlappingReplacementsTest.cpp Fix overlapping replacements in clang-tidy. 2015-10-16 11:43:49 +00:00
ReadabilityModuleTest.cpp [clang-tidy] Fix readability-braces-around-statements false positive 2016-10-14 08:10:08 +00:00
UsingInserterTest.cpp modernize-use-auto NFC fixes 2016-12-14 15:29:23 +00:00