Issue 132832
Summary [clang-format] Fix breaking change in 20.1.0 by automatically falling back to Cpp formatting if C formatting fails
Labels clang-format
Assignees
Reporter sean-mcmanus
    @owenca The PR at https://github.com/llvm/llvm-project/pull/128287 broke the case where a .c file is formatted in a folder with a .clang-format with Language: Cpp.

Can you make it not be a breaking change by automatically falling back to formatting with Cpp if no C language block is specified in .clang-format instead of giving an error?

Or do you recommend a higher level tooling layer detect the failure and change use --assume-filename=file.cpp instead of file.c as a workaround or what?
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to