Update `DynTypedNode` to support the conversion of `TypeLoc`s.
authorJames King <jamescking@google.com>
Mon, 4 Oct 2021 19:09:12 +0000 (19:09 +0000)
committerYitzhak Mandelbaum <yitzhakm@google.com>
Mon, 4 Oct 2021 19:25:24 +0000 (19:25 +0000)
commit56e72a40c1985529399738f66c6f4c24029112d6
tree3db6cf555c690c45151830eeccd78f6a3050e553
parentdafcbfdaa0cdcf50930ef6b9f5dca3a892973cfd
Update `DynTypedNode` to support the conversion of `TypeLoc`s.

This provides better support for `TypeLoc`s to allow `TypeLoc`-related
matchers to feature stricter typing and to avoid relying on the dynamic
casting of `TypeLoc`s in matchers.

Reviewed By: ymandel, tdl-g, sbenza

Differential Revision: https://reviews.llvm.org/D110586
clang/include/clang/AST/ASTTypeTraits.h
clang/lib/AST/ASTTypeTraits.cpp
clang/unittests/AST/ASTTypeTraitsTest.cpp