[analyzer] CheckerContext: Make the Preprocessor available
authorCharusso <dabis.csaba98@gmail.com>
Thu, 30 Jan 2020 16:00:49 +0000 (17:00 +0100)
committerCharusso <dabis.csaba98@gmail.com>
Thu, 30 Jan 2020 16:05:52 +0000 (17:05 +0100)
commit38ab3b876baaa899b92dda9113a4d1d4b56c2e79
tree6cfc6686252d9d3b10567d57745c4a99e06ff964
parentfdc496a3d30d2d82814965a6aa987b7ef0b136ef
[analyzer] CheckerContext: Make the Preprocessor available

Summary:
This patch hooks the `Preprocessor` trough `BugReporter` to the
`CheckerContext` so the checkers could look for macro definitions.

Reviewed By: NoQ

Differential Revision: https://reviews.llvm.org/D69731
clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h
clang/include/clang/StaticAnalyzer/Core/PathSensitive/AnalysisManager.h
clang/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h
clang/lib/StaticAnalyzer/Core/AnalysisManager.cpp
clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp
clang/unittests/StaticAnalyzer/Reusables.h