[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 01:14:09 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);
----------------
With Werror we get:

```
../../clang/unittests/AST/ASTImporterTest.cpp:8627:9: error: unused variable 'ToTU' [-Werror,-Wunused-variable]
  Decl *ToTU = getToTuDecl("", Lang_CXX11);
        ^

```


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