Skip to content

Commit 1df1da5

Browse files
committed
Fix format
1 parent 2b76709 commit 1df1da5

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

clang/lib/Tooling/Tooling.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -622,15 +622,14 @@ int ClangTool::run(ToolAction *Action) {
622622
// FIXME: We need a callback mechanism for the tool writer to output a
623623
// customized message for each file.
624624
if (NumOfTotalFiles > 1 || CompileCommandsForFile.size() > 1) {
625-
llvm::errs() << "[" + std::to_string(CurrentFileIndex) + "/" +
626-
std::to_string(NumOfTotalFiles) + "]";
625+
llvm::errs() << "[" << std::to_string(CurrentFileIndex) << "/"
626+
<< std::to_string(NumOfTotalFiles) << "]";
627627
if (CompileCommandsForFile.size() > 1) {
628-
llvm::errs() << " (" + std::to_string(CurrentCommandIndexForFile) +
629-
"/" +
630-
std::to_string(CompileCommandsForFile.size()) +
631-
")";
628+
llvm::errs() << " (" << std::to_string(CurrentCommandIndexForFile)
629+
<< "/" << std::to_string(CompileCommandsForFile.size())
630+
<< ")";
632631
}
633-
llvm::errs() << " Processing file " + File << ".\n";
632+
llvm::errs() << " Processing file " << File << ".\n";
634633
}
635634
ToolInvocation Invocation(std::move(CommandLine), Action, Files.get(),
636635
PCHContainerOps);

0 commit comments

Comments
 (0)