[all-commits] [llvm/llvm-project] da5e11: [AST] Support ConceptReference in DynTypedNode, ad...

Sam McCall via All-commits all-commits at lists.llvm.org
Mon Sep 4 04:56:45 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: da5e11cd1ce0754a123ff0bf6f3ce4a41be14355
      https://github.com/llvm/llvm-project/commit/da5e11cd1ce0754a123ff0bf6f3ce4a41be14355
  Author: Sam McCall <sam.mccall at gmail.com>
  Date:   2023-09-04 (Mon, 04 Sep 2023)

  Changed paths:
    M clang/include/clang/AST/ASTConcept.h
    M clang/include/clang/AST/ASTFwd.h
    M clang/include/clang/AST/ASTNodeTraverser.h
    M clang/include/clang/AST/ASTTypeTraits.h
    M clang/include/clang/AST/TextNodeDumper.h
    M clang/lib/AST/ASTDumper.cpp
    M clang/lib/AST/ASTTypeTraits.cpp
    M clang/lib/AST/TextNodeDumper.cpp
    M clang/unittests/AST/ASTTypeTraitsTest.cpp

  Log Message:
  -----------
  [AST] Support ConceptReference in DynTypedNode, add dump().

The dump() is not actually included recursively in any other nodes' dump,
as this is too verbose (similar to NNS) but useful in its own right.

It's unfortunate to not have the actual tests yet, but the DynTypedNode
tests are matcher-based and adding matchers is a larger task than
DynTypedNode support (but can't be done first).

(I've got a clangd change stacked on this that uses DynTypedNode and
dump(), and both work. I'll send a change for matchers next).

Differential Revision: https://reviews.llvm.org/D159300




More information about the All-commits mailing list