Skip to content

Commit 8a5c156

Browse files
authored
Also fix a return in ClangFormat.cpp
1 parent 0a92c3d commit 8a5c156

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/tools/clang-format/ClangFormat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ static bool format(StringRef FileName, bool ErrorOnIncompleteFormat = false) {
410410
const bool IsSTDIN = FileName == "-";
411411
if (!OutputXML && Inplace && IsSTDIN) {
412412
errs() << "error: cannot use -i when reading from stdin.\n";
413-
return false;
413+
return true;
414414
}
415415
// On Windows, overwriting a file with an open file mapping doesn't work,
416416
// so read the whole file into memory when formatting in-place.

0 commit comments

Comments
 (0)