================
@@ -701,9 +711,8 @@ int main(int argc, const char **argv) {
}
if (FileNames.empty()) {
- if (isIgnored(AssumeFileName))
- return 0;
- return clang::format::format("-", FailOnIncompleteFormat);
+ return clang::format::format("-", FailOnIncompleteFormat,
+ isIgnored(AssumeFileName));
----------------
owenca wrote:
```suggestion
if (isIgnored(AssumeFileName)) {
outs() << MemoryBuffer::getSTDIN()->get()->getBuffer();
return 0;
}
return clang::format::format("-", FailOnIncompleteFormat);
```
And leave the rest of the function alone.
https://github.com/llvm/llvm-project/pull/170416
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits