[all-commits] [llvm/llvm-project] 70acb3: A slightly more concise AST dump :)

Dani Ferreira Franco Moura via All-commits all-commits at lists.llvm.org
Fri Feb 10 11:11:46 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 70acb3aab3a10eea802781f69c8336c21dce6d59
      https://github.com/llvm/llvm-project/commit/70acb3aab3a10eea802781f69c8336c21dce6d59
  Author: Dani Ferreira Franco Moura <danimoura at google.com>
  Date:   2023-02-10 (Fri, 10 Feb 2023)

  Changed paths:
    M clang/include/clang/AST/ASTNodeTraverser.h
    A clang/test/AST/ast-dump-attr-type.cpp
    M clang/test/AST/ast-dump-types-json.cpp

  Log Message:
  -----------
  A slightly more concise AST dump :)

If the modifiedType and the minimally desugared type of an AttributedType are the same, then we do not need to show both in an AST dump.

Here, we change VisitAttributedType to only visit the modifiedType when it is different from the equivalentType (the minimally desugared type), because the latter is already visited by default.

Reviewed By: sammccall

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




More information about the All-commits mailing list