llvm-project/clang/lib
Johannes Altmanninger 1a2676924a [analyzer] Make StmtDataCollector customizable
Summary:
This moves the data collection macro calls for Stmt nodes
to lib/AST/StmtDataCollectors.inc

Users can subclass ConstStmtVisitor and include StmtDataCollectors.inc
to define visitor methods for each Stmt subclass. This makes it also
possible to customize the visit methods as exemplified in
lib/Analysis/CloneDetection.cpp.

Move helper methods for data collection to a new module,
AST/DataCollection.

Add data collection for DeclRefExpr, MemberExpr and some literals.

Reviewers: arphaman, teemperor!

Subscribers: mgorny, xazax.hun, cfe-commits

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

llvm-svn: 311569
2017-08-23 16:28:26 +00:00
..
ARCMigrate Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC. 2017-06-03 06:23:19 +00:00
AST [analyzer] Make StmtDataCollector customizable 2017-08-23 16:28:26 +00:00
ASTMatchers [ASTMatchers] Fix use after free. 2017-06-09 17:55:42 +00:00
Analysis [analyzer] Make StmtDataCollector customizable 2017-08-23 16:28:26 +00:00
Basic bpf: add -mcpu=# support for bpf 2017-08-23 04:26:17 +00:00
CodeGen [OPENMP] Fix for PR34014: OpenMP 4.5: Target construct in static method 2017-08-22 17:54:52 +00:00
Driver Revert r311552: [Bash-autocompletion] Add support for static analyzer flags 2017-08-23 14:48:58 +00:00
Edit [clang] Fix format specifiers fixits for nested macros 2017-06-20 20:46:58 +00:00
Format Revert "[clang-format] Emit absolute splits before lines for comments" 2017-08-23 15:58:10 +00:00
Frontend Revert r311442 (Fix templated type alias completion when using global completion cache) 2017-08-22 10:54:40 +00:00
FrontendTool Update after LLVM change r309087 2017-07-26 09:10:17 +00:00
Headers Headers: give _Unwind_Control_Block double-word alignment 2017-08-23 15:35:33 +00:00
Index Print enum constant values using the original source formatting 2017-08-17 13:41:55 +00:00
Lex Fixed a crash on replaying Preamble's PP conditional stack. 2017-08-21 12:03:08 +00:00
Parse [Parser] Correct initalizer typos before lambda capture type is deduced. 2017-08-22 17:55:19 +00:00
Rewrite [Analyzer] Add support for displaying cross-file diagnostic paths in HTML output 2017-08-03 18:12:22 +00:00
Sema Fix typos, remove unused private members of CommonOptionsParser, NFC 2017-08-23 10:43:26 +00:00
Serialization [ODRHash] Diagnose differing template parameters. 2017-08-23 02:43:59 +00:00
StaticAnalyzer [StaticAnalyzer] LoopUnrolling: Track a LoopStack in order to completely unroll specific loops 2017-08-21 16:32:57 +00:00
Tooling [clang-diff] Fix getRelativeName 2017-08-22 08:59:13 +00:00
CMakeLists.txt