Fixed typo: NoneComment -> NonComment, no other changes.
llvm-svn: 185640
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index a4b5f41..e5a8ad3 100644
--- a/clang/lib/Format/Format.cpp
+++ b/clang/lib/Format/Format.cpp
@@ -587,7 +587,7 @@
for (unsigned i = 0, e = State.Stack.size() - 1; i != e; ++i) {
State.Stack[i].BreakBeforeParameter = true;
}
- const FormatToken *TokenBefore = Current.getPreviousNoneComment();
+ const FormatToken *TokenBefore = Current.getPreviousNonComment();
if (TokenBefore && !TokenBefore->isOneOf(tok::comma, tok::semi) &&
TokenBefore->Type != TT_TemplateCloser &&
TokenBefore->Type != TT_BinaryOperator && !TokenBefore->opensScope())
@@ -714,7 +714,7 @@
State.Stack.back().Indent += 4;
// Insert scopes created by fake parenthesis.
- const FormatToken *Previous = Current.getPreviousNoneComment();
+ const FormatToken *Previous = Current.getPreviousNonComment();
// Don't add extra indentation for the first fake parenthesis after
// 'return', assignements or opening <({[. The indentation for these cases
// is special cased.
@@ -753,7 +753,7 @@
bool AvoidBinPacking;
if (Current.is(tok::l_brace)) {
NewIndent = Style.IndentWidth + LastSpace;
- const FormatToken *NextNoComment = Current.getNextNoneComment();
+ const FormatToken *NextNoComment = Current.getNextNonComment();
AvoidBinPacking = NextNoComment &&
NextNoComment->Type == TT_DesignatedInitializerPeriod;
} else {
@@ -1275,13 +1275,13 @@
// Adapt level to the next line if this is a comment.
// FIXME: Can/should this be done in the UnwrappedLineParser?
- const AnnotatedLine *NextNoneCommentLine = NULL;
+ const AnnotatedLine *NextNonCommentLine = NULL;
for (unsigned i = AnnotatedLines.size() - 1; i > 0; --i) {
- if (NextNoneCommentLine && AnnotatedLines[i].First->is(tok::comment) &&
+ if (NextNonCommentLine && AnnotatedLines[i].First->is(tok::comment) &&
!AnnotatedLines[i].First->Next)
- AnnotatedLines[i].Level = NextNoneCommentLine->Level;
+ AnnotatedLines[i].Level = NextNonCommentLine->Level;
else
- NextNoneCommentLine =
+ NextNonCommentLine =
AnnotatedLines[i].First->isNot(tok::r_brace) ? &AnnotatedLines[i]
: NULL;
}
@@ -1531,8 +1531,8 @@
FormatToken *Tok = (I + 1)->First;
if (Tok->is(tok::r_brace) && !Tok->MustBreakBefore &&
- (Tok->getNextNoneComment() == NULL ||
- Tok->getNextNoneComment()->is(tok::semi))) {
+ (Tok->getNextNonComment() == NULL ||
+ Tok->getNextNonComment()->is(tok::semi))) {
// We merge empty blocks even if the line exceeds the column limit.
Tok->SpacesRequiredBefore = 0;
Tok->CanBreakBefore = true;
@@ -1556,7 +1556,7 @@
// Last, check that the third line contains a single closing brace.
Tok = (I + 2)->First;
- if (Tok->getNextNoneComment() != NULL || Tok->isNot(tok::r_brace) ||
+ if (Tok->getNextNonComment() != NULL || Tok->isNot(tok::r_brace) ||
Tok->MustBreakBefore)
return;