[all-commits] [llvm/llvm-project] f761ac: [ASTImporter] Add Visitor for TypedefNameDecl's

vabridgers via All-commits all-commits at lists.llvm.org
Tue Jul 28 09:53:03 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f761acfb1a737d8a631a5e55b58cdb7c2215baad
      https://github.com/llvm/llvm-project/commit/f761acfb1a737d8a631a5e55b58cdb7c2215baad
  Author: Vince Bridgers <vince.a.bridgers at gmail.com>
  Date:   2020-07-28 (Tue, 28 Jul 2020)

  Changed paths:
    M clang/lib/AST/ASTImporterLookupTable.cpp
    A clang/test/Analysis/Inputs/ctu-import.c
    A clang/test/Analysis/Inputs/ctu-import.c.externalDefMap.ast-dump.txt
    A clang/test/Analysis/ctu-implicit.c

  Log Message:
  -----------
  [ASTImporter] Add Visitor for TypedefNameDecl's

We found a case where Typedef Name Declarations were not being added
correctly when importing builtin types. This exposed the need for a
TypedefNameDecl visitor so these types can be added by RecordDecl and
fields.

This code is covered by the ASTImporterTest cases that use the implicit
struct __NSConstantString_tag definitions.

Thanks to @martong for the debugging assist!

Depends on D83970.

Reviewed By: martong

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




More information about the All-commits mailing list