diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-18 22:05:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-18 22:05:41 +0000 |
commit | 24f0e48c0aa62f2268e061aad70f9b19a59e7b52 (patch) | |
tree | 3581af4268900f24201d9fc9126fe49afbad4440 /include/clang/Lex | |
parent | 0edfab68d463201ac2933cf88243701dbc3ba5ab (diff) |
factor escape newline measuring out into its own helper function.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69482 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Lex')
-rw-r--r-- | include/clang/Lex/Lexer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/clang/Lex/Lexer.h b/include/clang/Lex/Lexer.h index 61a532ac53..8d0576e4f9 100644 --- a/include/clang/Lex/Lexer.h +++ b/include/clang/Lex/Lexer.h @@ -336,6 +336,12 @@ public: Size = 0; return getCharAndSizeSlowNoWarn(Ptr, Size, Features); } + + /// getEscapedNewLineSize - Return the size of the specified escaped newline, + /// or 0 if it is not an escaped newline. P[-1] is known to be a "\" on entry + /// to this function. + static unsigned getEscapedNewLineSize(const char *P); + private: /// getCharAndSizeSlowNoWarn - Same as getCharAndSizeSlow, but never emits a |