[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:
parent
47da0f1e91
commit
e8cc0c3eb8
@ -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
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -115,7 +115,7 @@ def main():
|
||||
"ts", # TypeScript
|
||||
"cs", # C Sharp
|
||||
"json",
|
||||
"ipynb", # Json
|
||||
"ipynb", # JSON
|
||||
"sv",
|
||||
"svh",
|
||||
"v",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user