[all-commits] [llvm/llvm-project] 942527: [clang][AST][NFC] Factor out check for structural ...

David Stone via All-commits all-commits at lists.llvm.org
Mon May 8 10:28:51 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 94252713f9a7fdeeb18a7e43a9d414ea09fc0c13
  Author: David Stone <davidfromonline at gmail.com>
  Date:   2023-05-08 (Mon, 08 May 2023)

  Changed paths:
    M clang/lib/AST/ASTStructuralEquivalence.cpp

  Log Message:
  [clang][AST][NFC] Factor out check for structural equivalence of names.

We have four places that we try to decide which name to use for the
test for structural equivalence, and in each of those we evaluate
getTypedefNameForAnonDecl twice. Pull out the check into a function to
reduce duplication and evaluate things only once.

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

More information about the All-commits mailing list