llvm-project/clang/lib
Aaron Puchert b0a2a0cf7d Thread safety analysis: Handle conditional expression in getTrylockCallExpr
Summary:
We unwrap conditional expressions containing try-lock functions.

Additionally we don't acquire on conditional expression branches, since
that is usually not helpful. When joining the branches we would almost
certainly get a warning then.

Hopefully fixes an issue that was raised in D52398.

Reviewers: aaron.ballman, delesley, hokein

Reviewed By: aaron.ballman

Subscribers: cfe-commits

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

llvm-svn: 343902
2018-10-06 01:09:28 +00:00
..
ARCMigrate Add missing library dependency to fix build break after rC340247 2018-08-21 11:41:41 +00:00
AST Emit CK_NoOp casts in C mode, not just C++. 2018-10-05 21:53:51 +00:00
ASTMatchers Add matchers missing from dynamic AST registry 2018-10-03 20:52:51 +00:00
Analysis Thread safety analysis: Handle conditional expression in getTrylockCallExpr 2018-10-06 01:09:28 +00:00
Basic [OPENMP] Add reverse_offload clause to requires directive 2018-10-03 20:07:58 +00:00
CodeGen [COFF, ARM64] Add _InterlockedAdd intrinsic 2018-10-05 21:57:41 +00:00
CrossTU [CrossTU] Fix handling of Cross Translation Unit directory path 2017-10-27 12:53:37 +00:00
Driver [AArch64][ARM] Context sensitive meaning of crypto 2018-10-04 07:38:53 +00:00
Edit Port getLocEnd -> getEndLoc 2018-08-09 21:09:38 +00:00
Format clang-format: Don't insert spaces in front of :: for Java 8 Method References. 2018-10-05 18:22:21 +00:00
Frontend [Frontend] Delete -print-decl-contexts 2018-10-03 03:50:44 +00:00
FrontendTool [Frontend] Delete -print-decl-contexts 2018-10-03 03:50:44 +00:00
Headers [COFF, ARM64] Add _InterlockedAdd intrinsic 2018-10-05 21:57:41 +00:00
Index [Index] Respect "IndexFunctionLocals" option for type loc. 2018-10-04 11:03:55 +00:00
Lex [Preprocesssor] Filename should fall back to the written name when typo correction fails. 2018-10-02 14:42:51 +00:00
Parse [SEMA] split ExtWarn dupl-decl-spec's into Extension and ExtWarn 2018-10-03 23:09:29 +00:00
Rewrite Remove trailing space 2018-07-30 19:24:48 +00:00
Sema Emit CK_NoOp casts in C mode, not just C++. 2018-10-05 21:53:51 +00:00
Serialization [OPENMP] Add reverse_offload clause to requires directive 2018-10-03 20:07:58 +00:00
StaticAnalyzer [analyzer] Do not crash if the assumption added in TrustNonNullChecker is enough to make the state unfeasible 2018-10-03 22:31:09 +00:00
Tooling [Tooling] Get rid of uses of llvm::Twine::str which is slow. NFC 2018-09-27 14:50:24 +00:00
CMakeLists.txt Add Cross Translation Unit support library 2017-09-22 11:11:01 +00:00