diff options
author | Andy Gibbs <andyg1001@hotmail.co.uk> | 2012-11-17 19:16:52 +0000 |
---|---|---|
committer | Andy Gibbs <andyg1001@hotmail.co.uk> | 2012-11-17 19:16:52 +0000 |
commit | 97f8461a2c553f68a258612d2322e4281c3f0915 (patch) | |
tree | 6b5036827ca26138a9cd9dd548c56c3246f1b3b6 /include/clang/Lex/Preprocessor.h | |
parent | 02a176871d91bba3004e4f94b2d4d588ae4b2122 (diff) |
Made the "expected string literal" diagnostic more expressive
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168267 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Lex/Preprocessor.h')
-rw-r--r-- | include/clang/Lex/Preprocessor.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h index 486dcd8e68..7e5c66cbd8 100644 --- a/include/clang/Lex/Preprocessor.h +++ b/include/clang/Lex/Preprocessor.h @@ -700,17 +700,19 @@ public: /// string literals and may even come from macro expansion. /// \returns true on success, false if a error diagnostic has been generated. bool LexStringLiteral(Token &Result, std::string &String, - bool AllowMacroExpansion) { + const char *DiagnosticTag, bool AllowMacroExpansion) { if (AllowMacroExpansion) Lex(Result); else LexUnexpandedToken(Result); - return FinishLexStringLiteral(Result, String, AllowMacroExpansion); + return FinishLexStringLiteral(Result, String, DiagnosticTag, + AllowMacroExpansion); } /// \brief Complete the lexing of a string literal where the first token has /// already been lexed (see LexStringLiteral). bool FinishLexStringLiteral(Token &Result, std::string &String, + const char *DiagnosticTag, bool AllowMacroExpansion); /// LexNonComment - Lex a token. If it's a comment, keep lexing until we get |