[all-commits] [llvm/llvm-project] 2fcf1f: [MsDemangle] Use LLVM style RTTI for AST nodes (#1...
nerix via All-commits
all-commits at lists.llvm.org
Fri Jul 4 01:40:55 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2fcf1f8279b846930203fa05f71c6ade293709b1
https://github.com/llvm/llvm-project/commit/2fcf1f8279b846930203fa05f71c6ade293709b1
Author: nerix <nerixdev at outlook.de>
Date: 2025-07-04 (Fri, 04 Jul 2025)
Changed paths:
M llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h
Log Message:
-----------
[MsDemangle] Use LLVM style RTTI for AST nodes (#143410)
The inheritance hierarchy for `llvm::ms_demangle::Node`
([doxygen](https://llvm.org/doxygen/structllvm_1_1ms__demangle_1_1Node.html))
is a bit more involved. One thing that's missing without RTTI is the
ability to determine if a node is a symbol, identifier, or type (or one
would need to check for every kind).
This PR adds support for `dyn_cast`, `isa`, and friends to
`llvm::ms_demangle::Node`. As the type already has a `kind()`, this
mainly adds `classof` to the nodes as well as some start and end markers
in the `NodeKind` enum.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list