[clang] [clang-format] Make ignored files unformatted instead of empty. (PR #170416)

via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 4 23:18:38 PST 2025


================
@@ -401,8 +401,12 @@ class ClangFormatDiagConsumer : public DiagnosticConsumer {
 };
 
 // Returns true on error.
-static bool format(StringRef FileName, bool ErrorOnIncompleteFormat = false) {
+static bool format(StringRef FileName, bool ErrorOnIncompleteFormat,
+                   bool IsIgnored) {
----------------
owenca wrote:

```suggestion
static bool format(StringRef FileName, bool ErrorOnIncompleteFormat) {
```
And leave the function body alone.

https://github.com/llvm/llvm-project/pull/170416


More information about the cfe-commits mailing list