[clang] [clang][ExtractAPI] Stop dropping fields of nested anonymous record types when they aren't attached to variable declaration (PR #104600)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 19 08:03:34 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `lldb-aarch64-ubuntu` running on `linaro-lldb-aarch64-ubuntu` while building `clang` at step 4 "build".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/59/builds/3419

Here is the relevant piece of the build log for the reference:
```
Step 4 (build) failure: build (failure)
...
191.131 [1538/8/4725] Building CXX object tools/lldb/source/Host/CMakeFiles/lldbHost.dir/common/Alarm.cpp.o
191.131 [1538/7/4726] Building CXX object tools/lldb/utils/TableGen/CMakeFiles/lldb-tblgen.dir/LLDBPropertyDefEmitter.cpp.o
191.131 [1538/6/4727] Building CXX object tools/lldb/utils/TableGen/CMakeFiles/lldb-tblgen.dir/LLDBTableGenUtils.cpp.o
191.147 [1538/5/4728] Building CXX object tools/lldb/source/Host/CMakeFiles/lldbHost.dir/common/FileSystem.cpp.o
191.153 [1538/4/4729] Building CXX object tools/clang/tools/libclang/CMakeFiles/libclang.dir/Rewrite.cpp.o
191.159 [1538/3/4730] Building CXX object tools/lldb/source/Host/CMakeFiles/lldbHost.dir/common/File.cpp.o
191.193 [1538/2/4731] Linking CXX executable bin/nvptx-arch
191.245 [1537/2/4732] Linking CXX executable bin/lldb-tblgen
191.251 [1536/2/4733] Building CommandOptions.inc...
195.315 [1536/1/4734] Building CXX object tools/clang/tools/libclang/CMakeFiles/libclang.dir/CXExtractAPI.cpp.o
FAILED: tools/clang/tools/libclang/CMakeFiles/libclang.dir/CXExtractAPI.cpp.o 
/usr/local/bin/c++ -DGTEST_HAS_RTTI=0 -D_CINDEX_LIB_ -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/tools/clang/tools/libclang -I/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/clang/tools/libclang -I/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/clang/include -I/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/tools/clang/include -I/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/include -I/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17 -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/clang/tools/libclang/CMakeFiles/libclang.dir/CXExtractAPI.cpp.o -MF tools/clang/tools/libclang/CMakeFiles/libclang.dir/CXExtractAPI.cpp.o.d -o tools/clang/tools/libclang/CMakeFiles/libclang.dir/CXExtractAPI.cpp.o -c /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/clang/tools/libclang/CXExtractAPI.cpp
In file included from ../llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
../llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:164:38: error: member access into incomplete type 'SourceManager'
  164 |     return Context.getSourceManager().isInSystemHeader(D->getLocation());
      |                                      ^
../llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
   34 | class SourceManager;
      |       ^
In file included from ../llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
../llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:293:33: error: member access into incomplete type 'SourceManager'
  293 |       Context.getSourceManager().getPresumedLoc(Decl->getLocation());
      |                                 ^
../llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
   34 | class SourceManager;
      |       ^
In file included from ../llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
../llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:366:33: error: member access into incomplete type 'SourceManager'
  366 |       Context.getSourceManager().getPresumedLoc(Decl->getLocation());
      |                                 ^
../llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
   34 | class SourceManager;
      |       ^
In file included from ../llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
../llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:404:33: error: member access into incomplete type 'SourceManager'
  404 |       Context.getSourceManager().getPresumedLoc(Decl->getLocation());
      |                                 ^
../llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
   34 | class SourceManager;
      |       ^
In file included from ../llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
../llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:535:33: error: member access into incomplete type 'SourceManager'
  535 |       Context.getSourceManager().getPresumedLoc(Decl->getLocation());
      |                                 ^
../llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
   34 | class SourceManager;
      |       ^
In file included from ../llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
../llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:581:33: error: member access into incomplete type 'SourceManager'

```

https://github.com/llvm/llvm-project/pull/104600


More information about the cfe-commits mailing list