llvm-project/clang/lib/StaticAnalyzer/Frontend
Artem Dergachev 516837f2a1 [analyzer] Enable analysis of WebKit "unified sources".
Normally the analyzer begins path-sensitive analysis from functions within
the main file, even though the path is allowed to go through any functions
within the translation unit.

When a recent version of WebKit is compiled, the "unified sources" technique
is used, that assumes #including multiple code files into a single main file.
Such file would have no functions defined in it, so the analyzer wouldn't be
able to find any entry points for path-sensitive analysis.

This patch pattern-matches unified file names that are similar to those
used by WebKit and allows the analyzer to find entry points in the included
code files. A more aggressive/generic approach is being planned as well.

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

llvm-svn: 330876
2018-04-25 21:51:26 +00:00
..
AnalysisConsumer.cpp [analyzer] Enable analysis of WebKit "unified sources". 2018-04-25 21:51:26 +00:00
CMakeLists.txt Sort source lists in lib/StaticAnalyzer. 2018-04-07 04:25:01 +00:00
CheckerRegistration.cpp Remove use of intrusive ref count ownership acquisition 2017-01-04 22:36:39 +00:00
FrontendActions.cpp
ModelConsumer.cpp
ModelInjector.cpp Fix typos in clang 2018-04-06 15:14:32 +00:00
ModelInjector.h [NFC] Header cleanup 2016-07-18 19:02:11 +00:00