[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:01:34 PDT 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `clang-ve-ninja` running on `hpce-ve-main` while building `clang` at step 4 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/12/builds/4050
Here is the relevant piece of the build log for the reference:
```
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/ve-linux.py ...' (failure)
...
[3748/3977] Linking CXX executable bin/llvm-mca
[3749/3977] Linking CXX static library lib/libLLVMCFIVerify.a
[3750/3977] Linking CXX static library lib/libLLVMDebuginfod.a
[3751/3977] Linking CXX static library lib/libLLVMDebugInfoLogicalView.a
[3752/3977] Linking CXX static library lib/libLLVMProfileData.a
[3753/3977] Linking CXX static library lib/libLLVMCoverage.a
[3754/3977] Linking CXX executable bin/llvm-ctxprof-util
[3755/3977] Linking CXX executable bin/llvm-cxxmap
[3756/3977] Linking CXX static library lib/libLLVMAnalysis.a
[3757/3977] 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/bin/ccache /home/buildbot/install/bin/clang++ -DGTEST_HAS_RTTI=0 -D_CINDEX_LIB_ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/tools/clang/tools/libclang -I/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/tools/libclang -I/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/include -I/scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/tools/clang/include -I/scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/include -I/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/include -O2 -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 -O2 -g -DNDEBUG -fPIC -fno-exceptions -funwind-tables -fno-rtti -std=c++17 -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 /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/tools/libclang/CXExtractAPI.cpp
In file included from /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:164:38: error: member access into incomplete type 'clang::SourceManager'
return Context.getSourceManager().isInSystemHeader(D->getLocation());
^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
class SourceManager;
^
In file included from /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:293:33: error: member access into incomplete type 'clang::SourceManager'
Context.getSourceManager().getPresumedLoc(Decl->getLocation());
^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
class SourceManager;
^
In file included from /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:366:33: error: member access into incomplete type 'clang::SourceManager'
Context.getSourceManager().getPresumedLoc(Decl->getLocation());
^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
class SourceManager;
^
In file included from /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:404:33: error: member access into incomplete type 'clang::SourceManager'
Context.getSourceManager().getPresumedLoc(Decl->getLocation());
^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
class SourceManager;
^
In file included from /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:535:33: error: member access into incomplete type 'clang::SourceManager'
Context.getSourceManager().getPresumedLoc(Decl->getLocation());
^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
class SourceManager;
^
In file included from /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:581:33: error: member access into incomplete type 'clang::SourceManager'
Step 7 (build-llvm) failure: build-llvm (failure)
...
[3748/3977] Linking CXX executable bin/llvm-mca
[3749/3977] Linking CXX static library lib/libLLVMCFIVerify.a
[3750/3977] Linking CXX static library lib/libLLVMDebuginfod.a
[3751/3977] Linking CXX static library lib/libLLVMDebugInfoLogicalView.a
[3752/3977] Linking CXX static library lib/libLLVMProfileData.a
[3753/3977] Linking CXX static library lib/libLLVMCoverage.a
[3754/3977] Linking CXX executable bin/llvm-ctxprof-util
[3755/3977] Linking CXX executable bin/llvm-cxxmap
[3756/3977] Linking CXX static library lib/libLLVMAnalysis.a
[3757/3977] 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/bin/ccache /home/buildbot/install/bin/clang++ -DGTEST_HAS_RTTI=0 -D_CINDEX_LIB_ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/tools/clang/tools/libclang -I/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/tools/libclang -I/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/include -I/scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/tools/clang/include -I/scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/include -I/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/include -O2 -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 -O2 -g -DNDEBUG -fPIC -fno-exceptions -funwind-tables -fno-rtti -std=c++17 -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 /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/tools/libclang/CXExtractAPI.cpp
In file included from /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:164:38: error: member access into incomplete type 'clang::SourceManager'
return Context.getSourceManager().isInSystemHeader(D->getLocation());
^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
class SourceManager;
^
In file included from /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:293:33: error: member access into incomplete type 'clang::SourceManager'
Context.getSourceManager().getPresumedLoc(Decl->getLocation());
^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
class SourceManager;
^
In file included from /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:366:33: error: member access into incomplete type 'clang::SourceManager'
Context.getSourceManager().getPresumedLoc(Decl->getLocation());
^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
class SourceManager;
^
In file included from /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:404:33: error: member access into incomplete type 'clang::SourceManager'
Context.getSourceManager().getPresumedLoc(Decl->getLocation());
^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
class SourceManager;
^
In file included from /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:535:33: error: member access into incomplete type 'clang::SourceManager'
Context.getSourceManager().getPresumedLoc(Decl->getLocation());
^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
class SourceManager;
^
In file included from /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:581:33: error: member access into incomplete type 'clang::SourceManager'
```
https://github.com/llvm/llvm-project/pull/104600
More information about the cfe-commits
mailing list