]> granicus.if.org Git - clang/commit
[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)
commit537ae129b767ac40785b17328ba1aaca7e5f5ace
treee28c7f2666f84bd0257f822dba069c5d830712c9
parent5bd4b03535c115d46ecd089fdf391efd794e67e1
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@345724 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/StaticAnalyzer/Core/AnalyzerOptions.h
lib/StaticAnalyzer/Core/AnalyzerOptions.cpp
lib/StaticAnalyzer/Core/BugReporter.cpp
lib/StaticAnalyzer/Core/PlistDiagnostics.cpp
test/Analysis/Inputs/expected-plists/plist-macros-with-expansion.cpp.plist [new file with mode: 0644]
test/Analysis/plist-macros-with-expansion.cpp [new file with mode: 0644]