[PATCH] D64638: [CrossTU] Fix plist macro expansion if macro in other file.
Balázs Kéri via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 12 07:54:34 PDT 2019
balazske created this revision.
Herald added subscribers: cfe-commits, gamesh411, Szelethus, dkrupp.
Herald added a project: clang.
When cross TU analysis is used it is possible that a macro expansion
is generated for a macro that is defined (and used) in other than
the main translation unit. To get the expansion for it the source
location in the original source file and original preprocessor
is needed.
Repository:
rC Clang
https://reviews.llvm.org/D64638
Files:
lib/StaticAnalyzer/Core/PlistDiagnostics.cpp
test/Analysis/Inputs/plist-macros-ctu.c
test/Analysis/Inputs/plist-macros-ctu.h
test/Analysis/Inputs/plist-macros-with-expansion-ctu.c.externalDefMap.txt
test/Analysis/plist-macros-with-expansion-ctu.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64638.209486.patch
Type: text/x-patch
Size: 8265 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190712/2ba86365/attachment.bin>
More information about the cfe-commits
mailing list