llvm-project/clang/lib
Artem Dergachev 6a079dfdc9 [ASTMatchers] Add forCallable(), a generalization of forFunction().
The new matcher additionally covers blocks and Objective-C methods.

This matcher actually makes sure that the statement truly belongs
to that declaration's body. forFunction() incorrectly reported that
a statement in a nested block belonged to the surrounding function.

forFunction() is now deprecated due to the above footgun, in favor of
forCallable(functionDecl()) when only functions need to be considered.

Differential Revision: https://reviews.llvm.org/D102213
2021-05-13 11:25:00 -07: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 Handle unexpanded packs appearing in type-constraints. 2021-05-12 18:45:34 -07:00
ASTMatchers [ASTMatchers] Add forCallable(), a generalization of forFunction(). 2021-05-13 11:25:00 -07:00
Analysis Add type information to integral template argument if required. 2021-05-12 19:00:08 +00:00
Basic Support unwinding from inline assembly 2021-05-13 19:13:03 +01:00
CodeGen Support unwinding from inline assembly 2021-05-13 19:13:03 +01: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 [AMDGPU][OpenMP] Emit textual IR for -emit-llvm -S 2021-05-13 01:34:03 +00:00
Edit [Matrix] Implement C-style explicit type conversions for matrix types. 2021-04-10 11:48:41 +01:00
Format [clang-format] Rename common types between C#/JS 2021-05-06 12:12:58 +02:00
Frontend Modules: Simplify how DisableGeneratingGlobalModuleIndex is set, likely NFC 2021-05-13 10:39:40 -07:00
FrontendTool
Headers [PowerPC] Provide doubleword vector predicate form comparisons on Power7 2021-05-13 04:56:56 -05:00
Index [Index] Ignore nullptr decls for indexing 2021-05-06 13:12:26 -07:00
IndexSerialization [index-while-building] Fix build with -DBUILD_SHARED_LIBS=True 2020-08-20 15:12:56 +01:00
Interpreter [clang-repl] Add exhaustive list of libInterpreter dependencies. 2021-05-13 07:18:01 +00:00
Lex Use an allow list on reserved macro identifiers 2021-05-13 09:23:47 +02:00
Parse Parse vector bool when stdbool.h and altivec.h are included 2021-05-13 11:48:32 -04:00
Rewrite [clang] DeltaTree::AddDelta - fix "initialization is never read" clang-tidy warning. NFCI. 2021-03-02 15:01:34 +00:00
Sema Support unwinding from inline assembly 2021-05-13 19:13:03 +01:00
Serialization [clang] Spell correct variable 2021-05-03 05:33:47 -07:00
StaticAnalyzer [analyzer][solver] Prevent use of a null state 2021-05-13 20:16:29 +03:00
Testing
Tooling Support: Stop using F_{None,Text,Append} compatibility synonyms, NFC 2021-04-30 11:00:03 -07:00
CMakeLists.txt [clang-repl] Recommit "Land initial infrastructure for incremental parsing" 2021-05-13 06:30:29 +00:00