[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:06:33 PDT 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `flang-aarch64-rel-assert` running on `linaro-flang-aarch64-rel-assert` while building `clang` at step 5 "build-unified-tree".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/29/builds/2414
Here is the relevant piece of the build log for the reference:
```
Step 5 (build-unified-tree) failure: build (failure)
...
218.089 [547/20/6244] Building CXX object tools/llvm-exegesis/lib/CMakeFiles/LLVMExegesis.dir/ResultAggregator.cpp.o
218.097 [547/19/6245] Building CXX object tools/llvm-exegesis/lib/CMakeFiles/LLVMExegesis.dir/ParallelSnippetGenerator.cpp.o
218.098 [547/18/6246] Building CXX object tools/llvm-exegesis/lib/CMakeFiles/LLVMExegesis.dir/SerialSnippetGenerator.cpp.o
218.130 [543/21/6247] Building CXX object tools/llvm-exegesis/lib/CMakeFiles/LLVMExegesis.dir/SnippetFile.cpp.o
218.131 [543/20/6248] Building CXX object tools/llvm-exegesis/lib/CMakeFiles/LLVMExegesis.dir/SnippetGenerator.cpp.o
218.131 [543/19/6249] Linking CXX executable bin/llvm-dis
218.171 [543/18/6250] Linking CXX executable bin/llvm-diff
218.208 [543/17/6251] Linking CXX executable bin/clang-20
218.216 [543/16/6252] Building CXX object tools/llvm-exegesis/lib/CMakeFiles/LLVMExegesis.dir/SnippetRepetitor.cpp.o
218.234 [536/22/6253] 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/flang-aarch64-rel-assert/build/tools/clang/tools/libclang -I/home/tcwg-buildbot/worker/flang-aarch64-rel-assert/llvm-project/clang/tools/libclang -I/home/tcwg-buildbot/worker/flang-aarch64-rel-assert/llvm-project/clang/include -I/home/tcwg-buildbot/worker/flang-aarch64-rel-assert/build/tools/clang/include -I/home/tcwg-buildbot/worker/flang-aarch64-rel-assert/build/include -I/home/tcwg-buildbot/worker/flang-aarch64-rel-assert/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/flang-aarch64-rel-assert/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