[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:05:30 PDT 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `flang-aarch64-debug-reverse-iteration` running on `linaro-flang-aarch64-debug-reverse-iteration` while building `clang` at step 5 "build-unified-tree".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/20/builds/2022
Here is the relevant piece of the build log for the reference:
```
Step 5 (build-unified-tree) failure: build (failure)
...
244.616 [214/54/6350] Building CXX object tools/opt/CMakeFiles/LLVMOptDriver.dir/NewPMDriver.cpp.o
244.616 [214/53/6351] Building CXX object tools/remarks-shlib/CMakeFiles/Remarks.dir/libremarks.cpp.o
244.617 [214/52/6352] Building CXX object tools/sanstats/CMakeFiles/sanstats.dir/sanstats.cpp.o
244.617 [214/51/6353] Building CXX object tools/verify-uselistorder/CMakeFiles/verify-uselistorder.dir/verify-uselistorder.cpp.o
244.622 [214/50/6354] Building CXX object tools/yaml2obj/CMakeFiles/yaml2obj.dir/yaml2obj.cpp.o
244.623 [214/49/6355] Building CXX object examples/IRTransforms/CMakeFiles/ExampleIRTransforms.dir/SimplifyCFG.cpp.o
244.624 [214/48/6356] Building CXX object examples/Bye/CMakeFiles/Bye.dir/Bye.cpp.o
244.624 [214/47/6357] Building CXX object unittests/Analysis/InlineAdvisorPlugin/CMakeFiles/InlineAdvisorPlugin.dir/InlineAdvisorPlugin.cpp.o
244.625 [214/46/6358] Building CXX object unittests/Passes/Plugins/TestPlugin/CMakeFiles/TestPlugin.dir/TestPlugin.cpp.o
244.645 [214/45/6359] 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-debug-reverse-iteration/build/tools/clang/tools/libclang -I/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/clang/tools/libclang -I/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/clang/include -I/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/build/tools/clang/include -I/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/build/include -I/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/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 -fno-common -Woverloaded-virtual -Wno-nested-anon-types -g -std=c++17 -fPIC -fno-exceptions -funwind-tables -fno-rtti -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-debug-reverse-iteration/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