[all-commits] [llvm/llvm-project] 3d02ef: [clang] Dispatch default overloads of `TemplateArg...
Egor Zhdan via All-commits
all-commits at lists.llvm.org
Thu Nov 7 08:17:54 PST 2024
Branch: refs/heads/users/egorzhdan/template-arg-visitor
Home: https://github.com/llvm/llvm-project
Commit: 3d02ef56963fb5842b3484e7006fb87fa5d9aa6f
https://github.com/llvm/llvm-project/commit/3d02ef56963fb5842b3484e7006fb87fa5d9aa6f
Author: Egor Zhdan <e_zhdan at apple.com>
Date: 2024-11-07 (Thu, 07 Nov 2024)
Changed paths:
M clang/include/clang/AST/TemplateArgumentVisitor.h
Log Message:
-----------
[clang] Dispatch default overloads of `TemplateArgumentVisitor` to the implementation
This fixes an issue where overriding `clang::ConstTemplateArgumentVisitor::VisitTemplateArgument` in an implementation visitor class did not have the desired effect: the overload was not invoked when one of the visitor methods (e.g. `VisitDeclarationArgument`) is not implemented, instead it dispatched to `clang::ConstTemplateArgumentVisitor::VisitTemplateArgument` itself and always returned a default-initialized result.
This makes `TemplateArgumentVisitor` and `ConstTemplateArgumentVisitor` follow the implicit convention that is followed elsewhere in Clang AST, in `RecursiveASTVisitor` and `TypeVisitor`.
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