[cfe-commits] [PATCH] Make PreprocessorLexer's ConditionalStack available to clients

Magnus Reftel magnus.reftel at gmail.com
Thu Oct 14 00:01:30 PDT 2010


I recently needed to inspect the conditional stack of the preprocessor
for a small tool I wrote that annotates source code. I think the
ability to see why the preprocessor is including/excluding a line
could be useful for others. Attached, please find a trivial patch that
adds a public accessor function for ConditionalStack. I would much
appreciate if this could be applied to the trunk.

Best Regards
Magnus Reftel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getConditionalStack.patch
Type: application/octet-stream
Size: 732 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20101014/1a8aa0b6/attachment.obj>

More information about the cfe-commits mailing list