================
@@ -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));
----------------
matts1 wrote:
This doesn't work, as it's not limited to `--assume-filename`.
* The problem also persists with `clang-format ignored-file.cc`
* We also shouldn't always output that. When `--output-replacements-xml` is
provided, we need to do different logic.
https://github.com/llvm/llvm-project/pull/170416
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits