================
@@ -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:

`.clang-format-ignore` was designed to skip ignored filenames on the command 
line as if they were not provided. This is also consistent with its treatment 
of empty files whether or not `--output-replacements-xml` is specified. We 
shouldn't change this behavior now as people's workflows may be dependent on it.

https://github.com/llvm/llvm-project/pull/170416
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to