Skip to content

Commit 1e20686

Browse files
committed
[ASTScope] Introduce isa/cast/dyn_cast support to ASTScope hierarchy
The ASTScope class hierarchy rooted at ASTScopeImpl is relying entirely on overridden virtual functions and, in some cases, string comparisons on the class name, to provide customization for the various classes. Introduce proper LLVM dynamic casting support to this class hierarchy, eliminating the string comparisons and the manually-specified implementations of `getClassName` (which is now used only for printing). We've been meaning to do this for years, but today I got angry enough.
1 parent dd80cf7 commit 1e20686

File tree

6 files changed

+354
-140
lines changed

6 files changed

+354
-140
lines changed

0 commit comments

Comments
 (0)