diff options
author | Manuel Klimek <klimek@google.com> | 2013-01-07 14:56:16 +0000 |
---|---|---|
committer | Manuel Klimek <klimek@google.com> | 2013-01-07 14:56:16 +0000 |
commit | f0ab0a38d9482eef5495db845ff53ee689f9c80e (patch) | |
tree | 71ae610afc2e30623366835994ce5d7c2fe47d6a /lib/Format/UnwrappedLineParser.cpp | |
parent | cd162384a552ef4e4913244f4f14b9a3e5a791e1 (diff) |
s/parseStatement/parseStructuralElement/g in the UnwrappedLineParser.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171737 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Format/UnwrappedLineParser.cpp')
-rw-r--r-- | lib/Format/UnwrappedLineParser.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/Format/UnwrappedLineParser.cpp b/lib/Format/UnwrappedLineParser.cpp index 52717e17b9..00ca3a5334 100644 --- a/lib/Format/UnwrappedLineParser.cpp +++ b/lib/Format/UnwrappedLineParser.cpp @@ -112,7 +112,7 @@ bool UnwrappedLineParser::parseLevel(bool HasOpeningBrace) { } break; default: - parseStatement(); + parseStructuralElement(); break; } } while (!eof()); @@ -196,7 +196,7 @@ void UnwrappedLineParser::parseComments() { } } -void UnwrappedLineParser::parseStatement() { +void UnwrappedLineParser::parseStructuralElement() { parseComments(); int TokenNumber = 0; @@ -306,7 +306,7 @@ void UnwrappedLineParser::parseIfThenElse() { } else { addUnwrappedLine(); ++Line.Level; - parseStatement(); + parseStructuralElement(); --Line.Level; } if (FormatTok.Tok.is(tok::kw_else)) { @@ -319,7 +319,7 @@ void UnwrappedLineParser::parseIfThenElse() { } else { addUnwrappedLine(); ++Line.Level; - parseStatement(); + parseStructuralElement(); --Line.Level; } } else if (NeedsUnwrappedLine) { @@ -350,7 +350,7 @@ void UnwrappedLineParser::parseForOrWhileLoop() { } else { addUnwrappedLine(); ++Line.Level; - parseStatement(); + parseStructuralElement(); --Line.Level; } } @@ -363,7 +363,7 @@ void UnwrappedLineParser::parseDoWhile() { } else { addUnwrappedLine(); ++Line.Level; - parseStatement(); + parseStructuralElement(); --Line.Level; } @@ -374,7 +374,7 @@ void UnwrappedLineParser::parseDoWhile() { } nextToken(); - parseStatement(); + parseStructuralElement(); } void UnwrappedLineParser::parseLabel() { @@ -410,7 +410,7 @@ void UnwrappedLineParser::parseSwitch() { } else { addUnwrappedLine(); Line.Level += (Style.IndentCaseLabels ? 2 : 1); - parseStatement(); + parseStructuralElement(); Line.Level -= (Style.IndentCaseLabels ? 2 : 1); } } |