[PATCH] D41780: Preserve unknown STDC pragma through preprocessor

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 5 11:41:58 PST 2018


efriedma added a comment.

If you move all the #pragma STDC handlers from the lexer to the parser, you might be able to avoid adding an explicit STDC handler in PrintPreprocessedOutput.cpp.



================
Comment at: test/Preprocessor/pragma_unknown.c:32
 #pragma STDC SO_GREAT  // expected-warning {{unknown pragma in STDC namespace}}
 #pragma STDC   // expected-warning {{unknown pragma in STDC namespace}}
 
----------------
Maybe add CHECK lines to make sure these come out correctly?


Repository:
  rC Clang

https://reviews.llvm.org/D41780





More information about the cfe-commits mailing list