Skip to content

Commit 5c60e2c

Browse files
committed
[clang-format][NFC] Reformat source code with clang-format style
1 parent 4483cf2 commit 5c60e2c

File tree

6 files changed

+6
-24
lines changed

6 files changed

+6
-24
lines changed
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
BasedOnStyle: LLVM
2-
InsertBraces: true
3-
InsertNewlineAtEOF: true
4-
LineEnding: LF
5-
RemoveBracesLLVM: true
1+
BasedOnStyle: clang-format

clang/lib/Format/.clang-format

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
BasedOnStyle: LLVM
2-
InsertBraces: true
3-
InsertNewlineAtEOF: true
4-
LineEnding: LF
5-
RemoveBracesLLVM: true
1+
BasedOnStyle: clang-format

clang/lib/Format/UnwrappedLineParser.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ void printLine(llvm::raw_ostream &OS, const UnwrappedLine &Line,
4747
OS << Prefix;
4848
NewLine = false;
4949
}
50-
OS << I->Tok->Tok.getName() << "["
51-
<< "T=" << (unsigned)I->Tok->getType()
50+
OS << I->Tok->Tok.getName() << "[" << "T=" << (unsigned)I->Tok->getType()
5251
<< ", OC=" << I->Tok->OriginalColumn << ", \"" << I->Tok->TokenText
5352
<< "\"] ";
5453
for (SmallVectorImpl<UnwrappedLine>::const_iterator
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
BasedOnStyle: LLVM
2-
InsertBraces: true
3-
InsertNewlineAtEOF: true
4-
LineEnding: LF
5-
RemoveBracesLLVM: true
1+
BasedOnStyle: clang-format

clang/tools/clang-format/ClangFormat.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,7 @@ static void outputReplacementXML(StringRef Text) {
330330

331331
static void outputReplacementsXML(const Replacements &Replaces) {
332332
for (const auto &R : Replaces) {
333-
outs() << "<replacement "
334-
<< "offset='" << R.getOffset() << "' "
333+
outs() << "<replacement " << "offset='" << R.getOffset() << "' "
335334
<< "length='" << R.getLength() << "'>";
336335
outputReplacementXML(R.getReplacementText());
337336
outs() << "</replacement>\n";

clang/unittests/Format/.clang-format

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
BasedOnStyle: LLVM
2-
InsertBraces: true
3-
InsertNewlineAtEOF: true
4-
LineEnding: LF
5-
RemoveBracesLLVM: true
1+
BasedOnStyle: clang-format

0 commit comments

Comments
 (0)