diff options
author | Alexander Kornienko <alexfh@google.com> | 2015-12-16 15:44:42 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2015-12-16 15:44:42 +0000 |
commit | 2a538309ac210cfc15bf7d351cd4588ecd7cacbf (patch) | |
tree | 14597155f5bb22deb65579fea412707d24f084e2 /clang-tools-extra/clang-tidy/readability/NamespaceCommentCheck.cpp | |
parent | f7fe3b99c7cc07c52f85c264c656e048cf5c46b3 (diff) | |
download | bcm5719-llvm-2a538309ac210cfc15bf7d351cd4588ecd7cacbf.tar.gz bcm5719-llvm-2a538309ac210cfc15bf7d351cd4588ecd7cacbf.zip |
[clang-tidy] google-readability-namespace-comments: ignore stray semicolons
llvm-svn: 255772
Diffstat (limited to 'clang-tools-extra/clang-tidy/readability/NamespaceCommentCheck.cpp')
-rw-r--r-- | clang-tools-extra/clang-tidy/readability/NamespaceCommentCheck.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-tidy/readability/NamespaceCommentCheck.cpp b/clang-tools-extra/clang-tidy/readability/NamespaceCommentCheck.cpp index 8a13b5ba239..e57f736f0ea 100644 --- a/clang-tools-extra/clang-tidy/readability/NamespaceCommentCheck.cpp +++ b/clang-tools-extra/clang-tidy/readability/NamespaceCommentCheck.cpp @@ -75,7 +75,8 @@ void NamespaceCommentCheck::check(const MatchFinder::MatchResult &Result) { SourceLocation Loc = AfterRBrace; Token Tok; // Skip whitespace until we find the next token. - while (Lexer::getRawToken(Loc, Tok, Sources, Result.Context->getLangOpts())) { + while (Lexer::getRawToken(Loc, Tok, Sources, Result.Context->getLangOpts()) || + Tok.is(tok::semi)) { Loc = Loc.getLocWithOffset(1); } if (!locationsInSameFile(Sources, ND->getRBraceLoc(), Loc)) |