[all-commits] [llvm/llvm-project] 1a3589: [clang][ASTImporter] Import typedefs to distinct r...

Balázs Kéri via All-commits all-commits at lists.llvm.org
Mon Mar 27 09:00:10 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1a35893d2a58fdead33ec7daa9f1fe53f4787614
  Author: Balázs Kéri <1.int32 at gmail.com>
  Date:   2023-03-27 (Mon, 27 Mar 2023)

  Changed paths:
    M clang/lib/AST/ASTImporter.cpp
    M clang/unittests/AST/ASTImporterTest.cpp

  Log Message:
  [clang][ASTImporter] Import typedefs to distinct records as distinct nodes.

When a typedef node is imported, ASTImporter should not find an existing similar
typedef node for it that comes from different context (translation unit or scope).
This should avoid a situation where an existing typedef declaration is returned
at import of a typedef, but the underlying type was already imported as a new
type object.

Reviewed By: vabridgers

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

More information about the All-commits mailing list