Author: Owen Pan Date: 2024-05-15T21:04:46-07:00 New Revision: b11a6607cb6522c58dfbd5f54239e7daa281368e
URL: https://github.com/llvm/llvm-project/commit/b11a6607cb6522c58dfbd5f54239e7daa281368e DIFF: https://github.com/llvm/llvm-project/commit/b11a6607cb6522c58dfbd5f54239e7daa281368e.diff LOG: [clang-format][NFC] Reformat with 18.1.5 Added: Modified: clang/lib/Format/UnwrappedLineParser.cpp clang/tools/clang-format/ClangFormat.cpp Removed: ################################################################################ diff --git a/clang/lib/Format/UnwrappedLineParser.cpp b/clang/lib/Format/UnwrappedLineParser.cpp index 4f1c2c5114e93..2236a49e4b765 100644 --- a/clang/lib/Format/UnwrappedLineParser.cpp +++ b/clang/lib/Format/UnwrappedLineParser.cpp @@ -47,7 +47,8 @@ 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 diff --git a/clang/tools/clang-format/ClangFormat.cpp b/clang/tools/clang-format/ClangFormat.cpp index 01f7c6047726e..3fa5f81a35768 100644 --- a/clang/tools/clang-format/ClangFormat.cpp +++ b/clang/tools/clang-format/ClangFormat.cpp @@ -336,7 +336,8 @@ 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"; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits