llvm-project/clang/lib/Lex
Richard Smith 5dfa37a761 Don't allow __VA_OPT__ to be detected by #ifdef.
More study has discovered this to not actually be useful: because
current C++20 implementations reject `#ifdef __VA_OPT__`, this can't
really be used as a feature-test mechanism. And it's not too hard to
detect __VA_OPT__ without this, for example:

  #define THIRD_ARG(a, b, c, ...) c
  #define HAS_VA_OPT(...) THIRD_ARG(__VA_OPT__(,), 1, 0, )
  #if HAS_VA_OPT(?)

Partially reverts 0436ec2128.
2021-01-27 13:34:15 -08:00
..
CMakeLists.txt
DependencyDirectivesSourceMinimizer.cpp Avoid including FileSystem.h from MemoryBuffer.h 2020-02-29 12:30:23 -08:00
HeaderMap.cpp FileManager: Use llvm::Expected in new getFileRef API 2019-08-26 18:29:51 +00:00
HeaderSearch.cpp Revert "Lex: Migrate HeaderSearch::LoadedModuleMaps to FileEntryRef" 2020-12-14 22:05:08 -05:00
Lexer.cpp Lexer: Update the Lexer to use MemoryBufferRef, NFC 2020-10-19 19:10:21 -04:00
LiteralSupport.cpp Convert diagnostics about multi-character literals from extension to warning 2020-10-06 08:47:17 -04:00
MacroArgs.cpp
MacroInfo.cpp
ModuleMap.cpp Revert "Lex: Migrate HeaderSearch::LoadedModuleMaps to FileEntryRef" 2020-12-14 22:05:08 -05:00
PPCaching.cpp
PPCallbacks.cpp Avoid including FileManager.h from SourceManager.h 2020-03-11 13:53:12 -07:00
PPConditionalDirectiveRecord.cpp
PPDirectives.cpp Don't allow __VA_OPT__ to be detected by #ifdef. 2021-01-27 13:34:15 -08:00
PPExpressions.cpp Don't allow __VA_OPT__ to be detected by #ifdef. 2021-01-27 13:34:15 -08:00
PPLexerChange.cpp Lexer: Update the Lexer to use MemoryBufferRef, NFC 2020-10-19 19:10:21 -04:00
PPMacroExpansion.cpp Don't allow __VA_OPT__ to be detected by #ifdef. 2021-01-27 13:34:15 -08:00
Pragma.cpp [NFC] Fix compiler warnings due to integer comparison of different signedness 2020-09-11 15:32:03 +01:00
PreprocessingRecord.cpp
Preprocessor.cpp Don't allow __VA_OPT__ to be detected by #ifdef. 2021-01-27 13:34:15 -08:00
PreprocessorLexer.cpp
ScratchBuffer.cpp SourceManager: Make LastLineNoContentCache and ContentCache::SourceLineCache mutable, NFC 2020-10-23 13:22:47 -04:00
TokenConcatenation.cpp C++2a -> C++20 in some identifiers; NFC. 2020-04-21 15:37:19 -04:00
TokenLexer.cpp Revert "Suppress non-conforming GNU paste extension in all standard-conforming modes" 2021-01-27 10:59:57 -08:00
UnicodeCharSets.h