[analyzer][PlistMacroExpansion] Part 1.: New expand-macros flag
authorKristof Umann <dkszelethus@gmail.com>
Wed, 31 Oct 2018 14:54:27 +0000 (14:54 +0000)
committerKristof Umann <dkszelethus@gmail.com>
Wed, 31 Oct 2018 14:54:27 +0000 (14:54 +0000)
commit7d6d9eb6889c3f78a4466488d03744e408f39f1c
tree04e14549693613ab98fca25a81d74556ae52118e
parent412ed34744d45dae98e5d2eea8f96993d48b7b79
[analyzer][PlistMacroExpansion] Part 1.: New expand-macros flag

This is the first part of the implementation of the inclusion of macro
expansions into the plist output. It adds a new flag that adds a new
"macro_expansions" entry to each report that has PathDiagnosticPieces that were
expanded from a macro. While there's an entry for each macro expansion, both
the name of the macro and what it expands to is missing, and will be implemented
in followup patches.

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

llvm-svn: 345724
clang/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h
clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp
clang/lib/StaticAnalyzer/Core/BugReporter.cpp
clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp
clang/test/Analysis/Inputs/expected-plists/plist-macros-with-expansion.cpp.plist [new file with mode: 0644]
clang/test/Analysis/plist-macros-with-expansion.cpp [new file with mode: 0644]