diff options
Diffstat (limited to 'include/clang/Lex/Lexer.h')
-rw-r--r-- | include/clang/Lex/Lexer.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/clang/Lex/Lexer.h b/include/clang/Lex/Lexer.h index 6cff000207..18c2fca31a 100644 --- a/include/clang/Lex/Lexer.h +++ b/include/clang/Lex/Lexer.h @@ -17,6 +17,7 @@ #include "clang/Lex/Token.h" #include "clang/Lex/MultipleIncludeOpt.h" #include "clang/Basic/LangOptions.h" +#include "llvm/ADT/SmallVector.h" #include <string> #include <vector> #include <cassert> @@ -173,6 +174,10 @@ public: /// If Charify is true, this escapes the ' character instead of ". static std::string Stringify(const std::string &Str, bool Charify = false); + /// Stringify - Convert the specified string into a C string by escaping '\' + /// and " characters. This does not add surrounding ""'s to the string. + static void Stringify(llvm::SmallVectorImpl<char> &Str); + //===--------------------------------------------------------------------===// // Internal implementation interfaces. private: |