[clang-format]: Fix JSON casing (#168156)
This commit aligns the user clang-format output to always show JSON, not Json.
NOKEYCHECK=True
GitOrigin-RevId: e8cc0c3eb82789c9d2a22e094a941be180e9ab4b
diff --git a/ClangFormat.cpp b/ClangFormat.cpp
index 5f6502f..12ac8a3 100644
--- a/ClangFormat.cpp
+++ b/ClangFormat.cpp
@@ -88,7 +88,7 @@
" 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 @@
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);
diff --git a/git-clang-format b/git-clang-format
index fe2dd28..dcc0a53 100755
--- a/git-clang-format
+++ b/git-clang-format
@@ -115,7 +115,7 @@
"ts", # TypeScript
"cs", # C Sharp
"json",
- "ipynb", # Json
+ "ipynb", # JSON
"sv",
"svh",
"v",