llvm-project/clang/lib/Parse
Alp Toker ec543279db Support and use token kinds as diagnostic arguments
Introduce proper facilities to render token spellings using the diagnostic
formatter.

Replaces most of the hard-coded diagnostic messages related to expected tokens,
which all shared the same semantics but had to be multiply defined due to
variations in token order or quote marks.

The associated parser changes are largely mechanical but they expose
commonality in whole chunks of the parser that can now be factored away.

This commit uses C++11 typed enums along with a speculative legacy fallback
until the transition is complete.

Requires corresponding changes in LLVM r197895.

llvm-svn: 197972
2013-12-24 09:48:30 +00:00
..
CMakeLists.txt [CMake] clang/lib: Satisfy dependencies to add *actually used* libraries on target_link_libraries() and LLVM_LINK_COMPONENTS. 2013-12-09 19:04:43 +00:00
Makefile BUILD_ARCHIVE is the default for libraries, no need to set it. 2010-07-18 00:14:47 +00:00
ParseAST.cpp Use SmallVectorImpl instead of SmallVector for iterators and references to avoid specifying the vector size unnecessarily. 2013-07-04 03:08:24 +00:00
ParseCXXInlineMethods.cpp Support and use token kinds as diagnostic arguments 2013-12-24 09:48:30 +00:00
ParseDecl.cpp Support and use token kinds as diagnostic arguments 2013-12-24 09:48:30 +00:00
ParseDeclCXX.cpp Support and use token kinds as diagnostic arguments 2013-12-24 09:48:30 +00:00
ParseExpr.cpp Support and use token kinds as diagnostic arguments 2013-12-24 09:48:30 +00:00
ParseExprCXX.cpp Support and use token kinds as diagnostic arguments 2013-12-24 09:48:30 +00:00
ParseInit.cpp Support and use token kinds as diagnostic arguments 2013-12-24 09:48:30 +00:00
ParseObjc.cpp Support and use token kinds as diagnostic arguments 2013-12-24 09:48:30 +00:00
ParseOpenMP.cpp Support and use token kinds as diagnostic arguments 2013-12-24 09:48:30 +00:00
ParsePragma.cpp Support and use token kinds as diagnostic arguments 2013-12-24 09:48:30 +00:00
ParsePragma.h Adding support for MSVC #pragma detect_mismatch functionality by emitting a FAILIFMISMATCH linker command into the object file. 2013-06-04 02:07:14 +00:00
ParseStmt.cpp Support and use token kinds as diagnostic arguments 2013-12-24 09:48:30 +00:00
ParseTemplate.cpp Support and use token kinds as diagnostic arguments 2013-12-24 09:48:30 +00:00
ParseTentative.cpp Remove OpenCL-specific type keywords and specifiers 2013-12-18 15:29:05 +00:00
Parser.cpp Support and use token kinds as diagnostic arguments 2013-12-24 09:48:30 +00:00
RAIIObjectsForParser.h Revert "[OPENMP] Fix for parsing OpenMP directives with extra braces, brackets and parens" 2013-12-18 19:10:49 +00:00