Skip to content

Commit

Permalink
[clang-format][NFC] Reformat source code with clang-format style
Browse files Browse the repository at this point in the history
  • Loading branch information
owenca committed Dec 1, 2023
1 parent 4483cf2 commit 5c60e2c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 24 deletions.
6 changes: 1 addition & 5 deletions clang/include/clang/Format/.clang-format
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
BasedOnStyle: LLVM
InsertBraces: true
InsertNewlineAtEOF: true
LineEnding: LF
RemoveBracesLLVM: true
BasedOnStyle: clang-format
6 changes: 1 addition & 5 deletions clang/lib/Format/.clang-format
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
BasedOnStyle: LLVM
InsertBraces: true
InsertNewlineAtEOF: true
LineEnding: LF
RemoveBracesLLVM: true
BasedOnStyle: clang-format
3 changes: 1 addition & 2 deletions clang/lib/Format/UnwrappedLineParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ void printLine(llvm::raw_ostream &OS, const UnwrappedLine &Line,
OS << Prefix;
NewLine = false;
}
OS << I->Tok->Tok.getName() << "["
<< "T=" << (unsigned)I->Tok->getType()
OS << I->Tok->Tok.getName() << "[" << "T=" << (unsigned)I->Tok->getType()
<< ", OC=" << I->Tok->OriginalColumn << ", \"" << I->Tok->TokenText
<< "\"] ";
for (SmallVectorImpl<UnwrappedLine>::const_iterator
Expand Down
6 changes: 1 addition & 5 deletions clang/tools/clang-format/.clang-format
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
BasedOnStyle: LLVM
InsertBraces: true
InsertNewlineAtEOF: true
LineEnding: LF
RemoveBracesLLVM: true
BasedOnStyle: clang-format
3 changes: 1 addition & 2 deletions clang/tools/clang-format/ClangFormat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,7 @@ static void outputReplacementXML(StringRef Text) {

static void outputReplacementsXML(const Replacements &Replaces) {
for (const auto &R : Replaces) {
outs() << "<replacement "
<< "offset='" << R.getOffset() << "' "
outs() << "<replacement " << "offset='" << R.getOffset() << "' "
<< "length='" << R.getLength() << "'>";
outputReplacementXML(R.getReplacementText());
outs() << "</replacement>\n";
Expand Down
6 changes: 1 addition & 5 deletions clang/unittests/Format/.clang-format
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
BasedOnStyle: LLVM
InsertBraces: true
InsertNewlineAtEOF: true
LineEnding: LF
RemoveBracesLLVM: true
BasedOnStyle: clang-format

0 comments on commit 5c60e2c

Please sign in to comment.