[all-commits] [llvm/llvm-project] 56e72a: Update `DynTypedNode` to support the conversion of...

Yitzhak Mandelbaum via All-commits all-commits at lists.llvm.org
Mon Oct 4 12:26:27 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 56e72a40c1985529399738f66c6f4c24029112d6
      https://github.com/llvm/llvm-project/commit/56e72a40c1985529399738f66c6f4c24029112d6
  Author: James King <jamescking at google.com>
  Date:   2021-10-04 (Mon, 04 Oct 2021)

  Changed paths:
    M clang/include/clang/AST/ASTTypeTraits.h
    M clang/lib/AST/ASTTypeTraits.cpp
    M clang/unittests/AST/ASTTypeTraitsTest.cpp

  Log Message:
  -----------
  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




More information about the All-commits mailing list