mirror of
https://github.com/intel/llvm.git
synced 2026-02-02 18:18:09 +08:00
Added a comment
llvm-svn: 209146
This commit is contained in:
@@ -71,6 +71,8 @@ void NamespaceCommentCheck::check(const MatchFinder::MatchResult &Result) {
|
||||
return;
|
||||
|
||||
bool NextTokenIsOnSameLine = Sources.getSpellingLineNumber(Loc) == EndLine;
|
||||
// If we insert a line comment before the token in the same line, we need
|
||||
// to insert a line break.
|
||||
bool NeedLineBreak = NextTokenIsOnSameLine && Tok.isNot(tok::eof);
|
||||
|
||||
// Try to find existing namespace closing comment on the same line.
|
||||
|
||||
Reference in New Issue
Block a user