Change Lexer::MeasureTokenLength to take a LangOptions reference.
This allows it to accurately measure tokens, so that we get: t.cpp:8:13: error: unknown type name 'X' static foo::X P; ~~~~~^ instead of the woefully inferior: t.cpp:8:13: error: unknown type name 'X' static foo::X P; ~~~~ ^ Most of this is just plumbing to push the reference around. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69099 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Frontend/FixItRewriter.h 2 additions, 1 deletioninclude/clang/Frontend/FixItRewriter.h
- include/clang/Frontend/TextDiagnosticPrinter.h 13 additions, 4 deletionsinclude/clang/Frontend/TextDiagnosticPrinter.h
- include/clang/Lex/Lexer.h 2 additions, 1 deletioninclude/clang/Lex/Lexer.h
- include/clang/Rewrite/Rewriter.h 11 additions, 5 deletionsinclude/clang/Rewrite/Rewriter.h
- lib/Frontend/FixItRewriter.cpp 3 additions, 2 deletionslib/Frontend/FixItRewriter.cpp
- lib/Frontend/HTMLDiagnostics.cpp 4 additions, 4 deletionslib/Frontend/HTMLDiagnostics.cpp
- lib/Frontend/PCHReader.cpp 4 additions, 3 deletionslib/Frontend/PCHReader.cpp
- lib/Frontend/PlistDiagnostics.cpp 55 additions, 39 deletionslib/Frontend/PlistDiagnostics.cpp
- lib/Frontend/TextDiagnosticPrinter.cpp 2 additions, 2 deletionslib/Frontend/TextDiagnosticPrinter.cpp
- lib/Lex/Lexer.cpp 2 additions, 6 deletionslib/Lex/Lexer.cpp
- lib/Lex/Preprocessor.cpp 1 addition, 1 deletionlib/Lex/Preprocessor.cpp
- lib/Rewrite/HTMLRewrite.cpp 1 addition, 1 deletionlib/Rewrite/HTMLRewrite.cpp
- lib/Rewrite/Rewriter.cpp 3 additions, 3 deletionslib/Rewrite/Rewriter.cpp
- tools/clang-cc/HTMLPrint.cpp 1 addition, 1 deletiontools/clang-cc/HTMLPrint.cpp
- tools/clang-cc/RewriteBlocks.cpp 1 addition, 1 deletiontools/clang-cc/RewriteBlocks.cpp
- tools/clang-cc/RewriteMacros.cpp 1 addition, 1 deletiontools/clang-cc/RewriteMacros.cpp
- tools/clang-cc/RewriteObjC.cpp 4 additions, 4 deletionstools/clang-cc/RewriteObjC.cpp
- tools/clang-cc/clang-cc.cpp 49 additions, 41 deletionstools/clang-cc/clang-cc.cpp
Loading
Please register or sign in to comment