diff options
Diffstat (limited to 'clang-tools-extra/clang-tidy/utils/LexerUtils.h')
| -rw-r--r-- | clang-tools-extra/clang-tidy/utils/LexerUtils.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang-tools-extra/clang-tidy/utils/LexerUtils.h b/clang-tools-extra/clang-tidy/utils/LexerUtils.h index 8330266e634..2c4a2518259 100644 --- a/clang-tools-extra/clang-tidy/utils/LexerUtils.h +++ b/clang-tools-extra/clang-tidy/utils/LexerUtils.h @@ -80,6 +80,11 @@ SourceLocation findNextAnyTokenKind(SourceLocation Start, } } +// Finds next token that's not a comment. +Optional<Token> findNextTokenSkippingComments(SourceLocation Start, + const SourceManager &SM, + const LangOptions &LangOpts); + /// Re-lex the provide \p Range and return \c false if either a macro spans /// multiple tokens, a pre-processor directive or failure to retrieve the /// next token is found, otherwise \c true. |

