[clang] [clang-format] Add -ConfigFile option (PR #113864)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 30 20:06:53 PDT 2024
================
@@ -2102,6 +2108,17 @@ std::error_code parseConfiguration(llvm::MemoryBufferRef Config,
StyleSet.Add(std::move(DefaultStyle));
}
*Style = *StyleSet.Get(Language);
+ std::string ConfigFile;
+ if (!Style->ConfigFile.empty()) {
----------------
owenca wrote:
```suggestion
if (!Style.InheritsParentConfig && !Style->ConfigFile.empty()) {
```
https://github.com/llvm/llvm-project/pull/113864
More information about the cfe-commits
mailing list