[PATCH] Recognize function-like macro usages without semicolon in declaration context.

Manuel Klimek klimek at google.com
Mon Apr 8 09:33:00 PDT 2013


2013/4/8 Daniel Jasper <djasper at google.com>

>
>
> ================
> Comment at: lib/Format/UnwrappedLineParser.cpp:398
> @@ +397,3 @@
> +            ((FormatTok.NewlinesBefore > 0 &&
> FormatTok.HasUnescapedNewline) ||
> +             FormatTok.IsFirst)) {
> +          addUnwrappedLine();
> ----------------
> How can FormatTok.IsFirst be true?
>
>
Also, afaik if HasUnescpaedNewline then NewlineBefore > 0, so no need to
capture both...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130408/62dadbaa/attachment.html>


More information about the cfe-commits mailing list