[llvm] [llvm-dwarfdump] Added --output-style option for controlling output format (PR #216559)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 16 04:01:34 PDT 2026
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff origin/main HEAD --extensions cpp -- llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp b/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
index 5e0db8f84..620471ad2 100644
--- a/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
+++ b/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
@@ -337,10 +337,10 @@ static opt<bool> Verbose("verbose",
cat(DwarfDumpCategory));
static alias VerboseAlias("v", desc("Alias for --verbose."), aliasopt(Verbose),
cat(DwarfDumpCategory), cl::NotHidden);
-static opt<std::string> OutputStyleOpt(
- "output-style", init("LLVM"),
- desc("Specify the format of the output (LLVM or JSON)"),
- cat(DwarfDumpCategory));
+static opt<std::string>
+ OutputStyleOpt("output-style", init("LLVM"),
+ desc("Specify the format of the output (LLVM or JSON)"),
+ cat(DwarfDumpCategory));
static OutputStyleTy OutputStyle = LLVM;
static opt<bool>
ShowVariableCoverage("show-variable-coverage",
``````````
</details>
https://github.com/llvm/llvm-project/pull/216559
More information about the llvm-commits
mailing list