[clang-tools-extra] [clang-doc] Add option for compact JSON (PR #190822)
Paul Kirth via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 10 13:51:35 PDT 2026
================
@@ -112,6 +112,10 @@ Turn on time profiler. Generates clang-doc-tracing.json)"),
llvm::cl::init(false),
llvm::cl::cat(ClangDocCategory));
+static llvm::cl::opt<bool>
+ Pretty("pretty", llvm::cl::desc("Serialize JSON with whitespace."),
----------------
ilovepi wrote:
```suggestion
Pretty("pretty-json", llvm::cl::desc("Serialize JSON with whitespace."),
```
Do you think this would be better/harder to get wrong? up to you, as I'm 50/50 on if its better or not.
https://github.com/llvm/llvm-project/pull/190822
More information about the cfe-commits
mailing list