llvm-project/clang/lib/Lex
Alp Toker d4a3f0e894 Hide the concept of diagnostic levels from lex, parse and sema
The compilation pipeline doesn't actually need to know about the high-level
concept of diagnostic mappings, and hiding the final computed level presents
several simplifications and other potential benefits.

The only exceptions are opportunistic checks to see whether expensive code
paths can be avoided for diagnostics that are guaranteed to be ignored at a
certain SourceLocation.

This commit formalizes that invariant by introducing and using
DiagnosticsEngine::isIgnored() in place of individual level checks throughout
lex, parse and sema.

llvm-svn: 211005
2014-06-15 23:30:39 +00:00
..
CMakeLists.txt [CMake] Use LINK_LIBS instead of target_link_libraries(). 2014-02-26 06:41:29 +00:00
HeaderMap.cpp [C++11] Use 'nullptr'. Lex edition. 2014-05-17 23:10:59 +00:00
HeaderSearch.cpp Hide the concept of diagnostic levels from lex, parse and sema 2014-06-15 23:30:39 +00:00
Lexer.cpp Hide the concept of diagnostic levels from lex, parse and sema 2014-06-15 23:30:39 +00:00
LiteralSupport.cpp Permit the "if" literal suffix with Microsoft extensions enabled. 2014-05-29 23:10:15 +00:00
MacroArgs.cpp [C++11] Use 'nullptr'. Lex edition. 2014-05-17 23:10:59 +00:00
MacroInfo.cpp [C++11] Use 'nullptr'. Lex edition. 2014-05-17 23:10:59 +00:00
Makefile
ModuleMap.cpp Replace llvm::error_code with std::error_code. 2014-06-12 14:02:15 +00:00
PPCaching.cpp Fix the build break introduced by r195799 by restoring two close 2013-11-27 01:40:12 +00:00
PPCallbacks.cpp Unweaken vtables as per http://llvm.org/docs/CodingStandards.html#ll_virtual_anch 2011-12-20 02:48:34 +00:00
PPConditionalDirectiveRecord.cpp Changed ConditionValue argument to PPCallbacks If and Elif callbacks to be a 3-state enum. 2013-12-07 08:41:15 +00:00
PPDirectives.cpp Hide the concept of diagnostic levels from lex, parse and sema 2014-06-15 23:30:39 +00:00
PPExpressions.cpp Preprocessor: support defined() with operator names for MS compatibility 2014-05-21 06:13:51 +00:00
PPLexerChange.cpp Hide the concept of diagnostic levels from lex, parse and sema 2014-06-15 23:30:39 +00:00
PPMacroExpansion.cpp Implement -Wdate-time preprocessor warning 2014-06-10 06:08:51 +00:00
PTHLexer.cpp Include system_error directly. 2014-06-12 17:19:42 +00:00
Pragma.cpp DiagnosticsEngine: update severity setters to new terminology 2014-06-12 11:13:52 +00:00
PreprocessingRecord.cpp [C++11] Use 'nullptr'. Lex edition. 2014-05-17 23:10:59 +00:00
Preprocessor.cpp [C++11] Use 'nullptr'. 2014-06-09 02:04:02 +00:00
PreprocessorLexer.cpp Make Preprocessor::Lex non-recursive. 2013-09-19 00:41:32 +00:00
ScratchBuffer.cpp [C++11] Use 'nullptr'. Lex edition. 2014-05-17 23:10:59 +00:00
TokenConcatenation.cpp Revert "Fix assertion failures on annot_* tokens in clang -E" 2014-01-30 21:50:18 +00:00
TokenLexer.cpp [C++11] Use 'nullptr'. Lex edition. 2014-05-17 23:10:59 +00:00
UnicodeCharSets.h Fix the range for Malayam UCNs in C99. 2014-02-05 15:32:23 +00:00