Re: [PATCH] D17149: Consolidate and improve the handling of built-in feature-like macros

2016-04-05 Thread Andy Gibbs via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL265381: Consolidate and improve the handling of built-in feature-like macros (authored by AndyG). Changed prior to commit: http://reviews.llvm.org/D17149?vs=52535&id=52664#toc Repository: rL LLVM ht

Re: [PATCH] D17149: Consolidate and improve the handling of built-in feature-like macros

2016-04-04 Thread Richard Smith via cfe-commits
rsmith accepted this revision. rsmith added a reviewer: rsmith. This revision is now accepted and ready to land. Comment at: lib/Lex/PPMacroExpansion.cpp:1489-1492 @@ +1488,6 @@ +// a diagnostic and a dummy value. +if (Result.hasValue()) + OS << Result.get

Re: [PATCH] D17149: Consolidate and improve the handling of built-in feature-like macros

2016-04-04 Thread Andy Gibbs via cfe-commits
AndyG updated this revision to Diff 52535. AndyG marked 5 inline comments as done. AndyG added a comment. Implemented comments. http://reviews.llvm.org/D17149 Files: include/clang/Basic/DiagnosticLexKinds.td lib/Lex/PPMacroExpansion.cpp test/Preprocessor/feature_tests.c test/Preprocesso

Re: [PATCH] D17149: Consolidate and improve the handling of built-in feature-like macros

2016-04-04 Thread Andy Gibbs via cfe-commits
AndyG added inline comments. Comment at: lib/Lex/PPMacroExpansion.cpp:1456-1457 @@ +1455,4 @@ + +// Parse next non-comment, non-annotation token. +do PP.LexUnexpandedNonComment(Tok); while (Tok.isAnnotation()); + rsmith wrote: > If we get an annotation tok

Re: [PATCH] D17149: Consolidate and improve the handling of built-in feature-like macros

2016-04-03 Thread Richard Smith via cfe-commits
rsmith added inline comments. Comment at: lib/Lex/PPMacroExpansion.cpp:1430-1432 @@ +1429,5 @@ +Preprocessor &PP, +int(*Op)(Token &Tok, + Pre

Re: [PATCH] D17149: Consolidate and improve the handling of built-in feature-like macros

2016-04-03 Thread Andy Gibbs via cfe-commits
AndyG updated this revision to Diff 52513. AndyG added a comment. Ok, I've removed support for nested parentheses. Can this go through now? Thanks. http://reviews.llvm.org/D17149 Files: include/clang/Basic/DiagnosticLexKinds.td lib/Lex/PPMacroExpansion.cpp test/Preprocessor/feature_test

Re: [PATCH] D17149: Consolidate and improve the handling of built-in feature-like macros

2016-02-25 Thread Andy Gibbs via cfe-commits
AndyG added a comment. Second bump :o) http://reviews.llvm.org/D17149 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D17149: Consolidate and improve the handling of built-in feature-like macros

2016-02-18 Thread Andy Gibbs via cfe-commits
AndyG added a comment. Bump :o) http://reviews.llvm.org/D17149 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D17149: Consolidate and improve the handling of built-in feature-like macros

2016-02-11 Thread Andy Gibbs via cfe-commits
AndyG added a comment. To be honest, the simple answer is because it was just as easy to do with nesting as without (the code would still need to track the appearance of left and right parentheses in order to correctly parse to the closing right-parenthesis of the macro invocation in any case).

Re: [PATCH] D17149: Consolidate and improve the handling of built-in feature-like macros

2016-02-11 Thread Richard Smith via cfe-commits
rsmith added a subscriber: rsmith. Comment at: lib/Lex/PPMacroExpansion.cpp:1438-1440 @@ -1432,3 +1437,5 @@ - // Get the module name. - PP.LexNonComment(Tok); + // It is possible that the macro invocation has a multiple-nested argument, + // for example: __has_featureX))

Re: [PATCH] D17149: Consolidate and improve the handling of built-in feature-like macros

2016-02-11 Thread Andy Gibbs via cfe-commits
AndyG added a comment. Test comment -- just to see whether email notifications are sending properly (it seems, for example, that cfe-commits wasn't notified of this patch...) http://reviews.llvm.org/D17149 ___ cfe-commits mailing list cfe-commits@l