llvm-project/clang/lib
Aaron Puchert 530e074faa Thread safety analysis: Replace flags in FactEntry by SourceKind (NFC)
The motivation here is to make it available in the base class whether a
fact is managed or not. That would have meant three flags on the base
class, so I had a look whether we really have 8 possible combinations.

It turns out we don't: asserted and declared are obviously mutually
exclusive. Managed facts are only created when we acquire a capability
through a scoped capability. Adopting an asserted or declared lock will
not (in fact can not, because Facts are immutable) make them managed.

We probably don't want to allow adopting an asserted lock (because then
the function should probably have a release attribute, and then the
assertion is pointless), but we might at some point decide to replace a
declared fact on adoption.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D100801
2021-05-03 14:03:17 +02:00
..
APINotes [clang][APINotes] Fix -Wunused-function warning (NFC) 2021-04-01 09:52:43 +08:00
ARCMigrate [SystemZ][z/OS] Set files in FileRemapper.cpp are text 2021-04-19 07:59:42 -04:00
AST Fix type printing of array template args 2021-05-01 18:50:09 +00:00
ASTMatchers [ASTMatchers] Add `cxxBaseSpecifier` matcher (non-top-level) 2021-04-09 00:05:36 +01:00
Analysis Thread safety analysis: Replace flags in FactEntry by SourceKind (NFC) 2021-05-03 14:03:17 +02:00
Basic [Cuda] Internalize a struct and a global variable 2021-05-01 16:24:39 -07:00
CodeGen [HIP] Fix device lib selection 2021-05-01 20:31:11 -04:00
CrossTU [analyzer][CTU] API for CTU macro expansions 2021-02-22 11:12:22 +01:00
DirectoryWatcher Revert "ADT: Migrate users of AlignedCharArrayUnion to std::aligned_union_t, NFC" 2020-12-14 17:04:06 -08:00
Driver [HIP] Fix device lib selection 2021-05-01 20:31:11 -04:00
Edit [Matrix] Implement C-style explicit type conversions for matrix types. 2021-04-10 11:48:41 +01:00
Format clang-format: [JS] handle "off" in imports 2021-04-30 14:18:52 +02:00
Frontend [AMDGPU] Add options -mamdgpu-ieee -mno-amdgpu-ieee 2021-05-01 09:02:55 -04:00
FrontendTool
Headers [PowerPC] Add floating point overloads for vec_sldw 2021-04-30 20:29:03 -05:00
Index [index] Improve macro indexing support 2021-04-06 09:12:14 -07:00
IndexSerialization [index-while-building] Fix build with -DBUILD_SHARED_LIBS=True 2020-08-20 15:12:56 +01:00
Lex [C++2b] Support size_t literals 2021-03-31 13:36:23 +00:00
Parse [clang][parser] Unify rejecting (non) decl stmts with gnu attributes 2021-04-19 12:43:55 +02:00
Rewrite [clang] DeltaTree::AddDelta - fix "initialization is never read" clang-tidy warning. NFCI. 2021-03-02 15:01:34 +00:00
Sema [clang] Remove libstdc++ friend template hack 2021-05-03 04:19:30 -07:00
Serialization [NFC] Fix "not used" warning 2021-04-26 22:09:23 -07:00
StaticAnalyzer [analyzer] Fix assertion in SVals.h 2021-04-30 11:00:43 -05:00
Testing
Tooling Support: Stop using F_{None,Text,Append} compatibility synonyms, NFC 2021-04-30 11:00:03 -07:00
CMakeLists.txt APINotes: add APINotesYAMLCompiler 2020-11-05 18:55:13 +00:00