3565c8e343
related to pp-expressions. Doing so is pretty simple and this patch implements it, yielding nice diagnostics like: t.c:2:7: error: division by zero in preprocessor expression #if 1 / (0 + 0) ~ ^ ~~~~~~~ t.c:5:14: error: expected ')' in preprocessor expression #if (412 + 42 ~~~~~~~~^ t.c:5:5: error: to match this '(' #if (412 + 42 ^ t.c:10:10: warning: left side of operator converted from negative value to unsigned: -42 to 18446744073709551574 #if (-42 + 0U) / -2 ~~~ ^ ~~ t.c:10:16: warning: right side of operator converted from negative value to unsigned: -2 to 18446744073709551614 #if (-42 + 0U) / -2 ~~~~~~~~~~ ^ ~~ 5 diagnostics generated. llvm-svn: 50638 |
||
---|---|---|
.. | ||
DirectoryLookup.h | ||
HeaderMap.h | ||
HeaderSearch.h | ||
Lexer.h | ||
LiteralSupport.h | ||
MacroInfo.h | ||
MultipleIncludeOpt.h | ||
PPCallbacks.h | ||
Pragma.h | ||
Preprocessor.h | ||
ScratchBuffer.h | ||
Token.h | ||
TokenLexer.h |