[clang-format]: Fix JSON casing (#168156)

This commit aligns the user clang-format output to always show JSON, not Json.
This commit is contained in:
Anton Kesy 2025-11-16 16:01:06 +00:00 committed by GitHub
parent 47da0f1e91
commit e8cc0c3eb8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View File

@ -50,7 +50,7 @@ to format C/C++/Java/JavaScript/JSON/Objective-C/Protobuf/C# code.
CSharp: .cs
Java: .java
JavaScript: .js .mjs .cjs .ts
Json: .json .ipynb
JSON: .json .ipynb
Objective-C: .m .mm
Proto: .proto .protodevel
TableGen: .td

View File

@ -88,7 +88,7 @@ static cl::opt<std::string> AssumeFileName(
" CSharp: .cs\n"
" Java: .java\n"
" JavaScript: .js .mjs .cjs .ts\n"
" Json: .json .ipynb\n"
" JSON: .json .ipynb\n"
" Objective-C: .m .mm\n"
" Proto: .proto .protodevel\n"
" TableGen: .td\n"
@ -489,7 +489,7 @@ static bool format(StringRef FileName, bool ErrorOnIncompleteFormat = false) {
auto Err =
Replaces.add(tooling::Replacement(AssumedFileName, 0, 0, "x = "));
if (Err)
llvm::errs() << "Bad Json variable insertion\n";
llvm::errs() << "Bad JSON variable insertion\n";
}
auto ChangedCode = tooling::applyAllReplacements(Code->getBuffer(), Replaces);

View File

@ -115,7 +115,7 @@ def main():
"ts", # TypeScript
"cs", # C Sharp
"json",
"ipynb", # Json
"ipynb", # JSON
"sv",
"svh",
"v",