[llvm] [MSVC][Demangling] Make Microsoft demangling more configurable (PR #202702)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 15 02:39:42 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 h,cpp -- llvm/unittests/Demangle/MicrosoftDemangleTest.cpp llvm/include/llvm/Demangle/Demangle.h llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h llvm/lib/Demangle/MicrosoftDemangle.cpp llvm/lib/Demangle/MicrosoftDemangleNodes.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/include/llvm/Demangle/MicrosoftDemangleNodes.h b/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h
index 55208ccdd..f5c155518 100644
--- a/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h
+++ b/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h
@@ -750,8 +750,7 @@ struct DEMANGLE_ABI VariableSymbolNode : public SymbolNode {
     return N->kind() == NodeKind::VariableSymbol;
   }
 
-  virtual bool shouldOutputName(OutputFlags Flags) const { return true;
-  }
+  virtual bool shouldOutputName(OutputFlags Flags) const { return true; }
 
   StorageClass SC = StorageClass::None;
   TypeNode *Type = nullptr;

``````````

</details>


https://github.com/llvm/llvm-project/pull/202702


More information about the llvm-commits mailing list