llvm-project/clang/lib
Aaron Puchert 6a68efc959 Thread safety analysis: Allow scoped releasing of capabilities
Summary:
The pattern is problematic with C++ exceptions, and not as widespread as
scoped locks, but it's still used by some, for example Chromium.

We are a bit stricter here at join points, patterns that are allowed for
scoped locks aren't allowed here. That could still be changed in the
future, but I'd argue we should only relax this if people ask for it.

Fixes PR36162.

Reviewers: aaron.ballman, delesley, pwnall

Reviewed By: delesley, pwnall

Subscribers: pwnall, cfe-commits

Differential Revision: https://reviews.llvm.org/D52578

llvm-svn: 349300
2018-12-16 14:15:30 +00:00
..
ARCMigrate Misc typos fixes in ./lib folder 2018-12-10 12:37:46 +00:00
AST Mangle calling conventions into function pointer types where GCC does 2018-12-14 23:42:59 +00:00
ASTMatchers [clang] Add AST matcher for block expressions 🔍 2018-12-13 03:35:10 +00:00
Analysis Thread safety analysis: Allow scoped releasing of capabilities 2018-12-16 14:15:30 +00:00
Basic Basic: make `int_least64_t` and `int_fast64_t` match on Darwin 2018-12-12 17:05:20 +00:00
CodeGen [Clang] Add __builtin_launder 2018-12-14 21:11:28 +00:00
CrossTU Fix up diagnostics. 2018-12-14 03:35:10 +00:00
Driver Implement -frecord-command-line (-frecord-gcc-switches) 2018-12-14 15:38:15 +00:00
Edit [Fixed Point Arithmetic] Fixed Point to Boolean Cast 2018-10-23 17:55:35 +00:00
Format [clang-format] Do not treat asm clobber [ as ObjCExpr, refined 2018-11-22 14:49:55 +00:00
Frontend Implement -frecord-command-line (-frecord-gcc-switches) 2018-12-14 15:38:15 +00:00
FrontendTool [analyzer][NFC] Merge ClangCheckerRegistry to CheckerRegistry 2018-12-15 18:11:49 +00:00
Headers [Builltins][X86] Provide implementations of __lzcnt16, __lzcnt, __lzcnt64 for MS compatibility. Remove declarations from intrin.h and implementations from lzcntintrin.h 2018-12-14 00:21:02 +00:00
Index [OpenCL] Add generic AS to 'this' pointer 2018-12-13 10:15:27 +00:00
Lex Misc typos fixes in ./lib folder 2018-12-10 12:37:46 +00:00
Parse Fix up diagnostics. 2018-12-14 03:35:10 +00:00
Rewrite Misc typos fixes in ./lib folder 2018-12-10 12:37:46 +00:00
Sema [MinGW] Produce a vtable and RTTI for dllexported classes without a key function 2018-12-15 08:08:11 +00:00
Serialization Fix up diagnostics. 2018-12-14 03:35:10 +00:00
StaticAnalyzer [analyzer][MallocChecker] Improve warning messages on double-delete errors 2018-12-15 18:41:37 +00:00
Tooling Add explicit dependency on clangSerialization for a bunch of components to fix -DBUILD_SHARED_LIBS=on build 2018-12-12 08:02:18 +00:00
CMakeLists.txt Add Cross Translation Unit support library 2017-09-22 11:11:01 +00:00