[cfe-dev] [PATCH] Missing calls for #elif PPCallback.

Enea Zaffanella zaffanella at cs.unipr.it
Thu Oct 24 05:11:52 PDT 2013


Hello.

It seems that the #elif preprocessor callback is not called in code such 
as the following, where the #if condition evaluates to false:

#if UNDEF
#elif DEF
#endif

The attached patch fixes it.
Also added a testcase.

Enea.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Elif-Callback.patch
Type: text/x-diff
Size: 4635 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20131024/837b2058/attachment.patch>


More information about the cfe-dev mailing list