[PATCH] D145868: [clang][ASTImporter] Fix import of typedef with unnamed structures

Bjorn Pettersson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 13 07:02:45 PDT 2023


bjope added inline comments.


================
Comment at: clang/unittests/AST/ASTImporterTest.cpp:8627
+      )";
+  Decl *ToTU = getToTuDecl("", Lang_CXX11);
+  Decl *FromTU = getTuDecl(Code, Lang_CXX11);
----------------
balazske wrote:
> bjope wrote:
> > With Werror we get:
> > 
> > ```
> > ../../clang/unittests/AST/ASTImporterTest.cpp:8627:9: error: unused variable 'ToTU' [-Werror,-Wunused-variable]
> >   Decl *ToTU = getToTuDecl("", Lang_CXX11);
> >         ^
> > 
> > ```
> Problem was fixed in 1689a5d756f81d615bcfca8de2631b0ccc8a3917.
Great. Thanks!


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D145868/new/

https://reviews.llvm.org/D145868



More information about the cfe-commits mailing list