[PATCH] D93224: [RFC][analyzer] Use the MacroExpansionContext for macro expansions in plists
Gábor Horváth via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 15 05:23:33 PST 2020
xazax.hun accepted this revision.
xazax.hun added a comment.
This revision is now accepted and ready to land.
Yay! Deleting code is always nice.
================
Comment at: clang/test/Analysis/Inputs/expected-plists/plist-macros-with-expansion.cpp.plist:148
<key>name</key><string>SET_PTR_VAR_TO_NULL</string>
- <key>expansion</key><string>ptr = 0</string>
+ <key>expansion</key><string>ptr =0</string>
</dict>
----------------
martong wrote:
> martong wrote:
> > I wonder how much added value do we have with these huge and clumsy plist files... We already have the concise unittests, which are quite self explanatory. I'd just simply delete these plist files.
> Perhaps in the test cpp file we should just execute a FileCheck for the expansions. We are totally not interested to check the whole contents of the plist, we are interested only to see if there were expansions.
We do need some plist tests to ensure that the correct plist format is emitted. How much of those do we need might be up for debate.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93224/new/
https://reviews.llvm.org/D93224
More information about the cfe-commits
mailing list