[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:46:57 PDT 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux` running on `sanitizer-buildbot8` while building `clang` at step 2 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/51/builds/2655
Here is the relevant piece of the build log for the reference:
```
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
[5157/5239] Creating library symlink lib/libLTO.so
[5158/5239] Linking CXX executable bin/llvm-lto2
[5159/5239] Linking CXX executable bin/lld
[5160/5239] Linking CXX executable bin/llvm-reduce
[5161/5239] Linking CXX executable bin/opt
[5162/5239] Linking CXX executable bin/llvm-opt-fuzzer
[5163/5239] Linking CXX executable bin/llvm-split
[5164/5239] Linking CXX shared library lib/libLLVM.so.20.0git
[5165/5239] Creating library symlink lib/libLLVM.so
[5166/5239] Building CXX object tools/clang/tools/libclang/CMakeFiles/libclang.dir/CXExtractAPI.cpp.o
FAILED: tools/clang/tools/libclang/CMakeFiles/libclang.dir/CXExtractAPI.cpp.o
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-aarch64-linux/build/llvm_build0/bin/clang++ -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/b/sanitizer-aarch64-linux/build/build_default/tools/clang/tools/libclang -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/tools/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/include -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang/CXExtractAPI.cpp
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:164:38: error: member access into incomplete type 'SourceManager'
164 | return Context.getSourceManager().isInSystemHeader(D->getLocation());
| ^
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
34 | class SourceManager;
| ^
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:293:33: error: member access into incomplete type 'SourceManager'
293 | Context.getSourceManager().getPresumedLoc(Decl->getLocation());
| ^
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
34 | class SourceManager;
| ^
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:366:33: error: member access into incomplete type 'SourceManager'
366 | Context.getSourceManager().getPresumedLoc(Decl->getLocation());
| ^
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
34 | class SourceManager;
| ^
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:404:33: error: member access into incomplete type 'SourceManager'
404 | Context.getSourceManager().getPresumedLoc(Decl->getLocation());
| ^
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
34 | class SourceManager;
| ^
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:535:33: error: member access into incomplete type 'SourceManager'
535 | Context.getSourceManager().getPresumedLoc(Decl->getLocation());
| ^
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
34 | class SourceManager;
| ^
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:581:33: error: member access into incomplete type 'SourceManager'
Step 8 (build compiler-rt symbolizer) failure: build compiler-rt symbolizer (failure)
...
[5157/5239] Creating library symlink lib/libLTO.so
[5158/5239] Linking CXX executable bin/llvm-lto2
[5159/5239] Linking CXX executable bin/lld
[5160/5239] Linking CXX executable bin/llvm-reduce
[5161/5239] Linking CXX executable bin/opt
[5162/5239] Linking CXX executable bin/llvm-opt-fuzzer
[5163/5239] Linking CXX executable bin/llvm-split
[5164/5239] Linking CXX shared library lib/libLLVM.so.20.0git
[5165/5239] Creating library symlink lib/libLLVM.so
[5166/5239] Building CXX object tools/clang/tools/libclang/CMakeFiles/libclang.dir/CXExtractAPI.cpp.o
FAILED: tools/clang/tools/libclang/CMakeFiles/libclang.dir/CXExtractAPI.cpp.o
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-aarch64-linux/build/llvm_build0/bin/clang++ -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/b/sanitizer-aarch64-linux/build/build_default/tools/clang/tools/libclang -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/tools/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/include -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang/CXExtractAPI.cpp
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:164:38: error: member access into incomplete type 'SourceManager'
164 | return Context.getSourceManager().isInSystemHeader(D->getLocation());
| ^
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
34 | class SourceManager;
| ^
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:293:33: error: member access into incomplete type 'SourceManager'
293 | Context.getSourceManager().getPresumedLoc(Decl->getLocation());
| ^
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
34 | class SourceManager;
| ^
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:366:33: error: member access into incomplete type 'SourceManager'
366 | Context.getSourceManager().getPresumedLoc(Decl->getLocation());
| ^
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
34 | class SourceManager;
| ^
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:404:33: error: member access into incomplete type 'SourceManager'
404 | Context.getSourceManager().getPresumedLoc(Decl->getLocation());
| ^
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
34 | class SourceManager;
| ^
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:535:33: error: member access into incomplete type 'SourceManager'
535 | Context.getSourceManager().getPresumedLoc(Decl->getLocation());
| ^
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
34 | class SourceManager;
| ^
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:581:33: error: member access into incomplete type 'SourceManager'
Step 10 (build compiler-rt debug) failure: build compiler-rt debug (failure)
...
-- Performing Test COMPILER_RT_TARGET_HAS_UNAME
-- Performing Test COMPILER_RT_TARGET_HAS_UNAME - Success
-- Performing Test HAS_THREAD_LOCAL
-- Performing Test HAS_THREAD_LOCAL - Success
-- Generated Sanitizer SUPPORTED_TOOLS list on "Linux" is "asan;lsan;hwasan;msan;tsan;ubsan"
-- sanitizer_common tests on "Linux" will run against "asan;lsan;hwasan;msan;tsan;ubsan"
-- Configuring done (56.7s)
-- Generating done (0.4s)
-- Build files have been written to: /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins
[5231/5239] Building CXX object tools/clang/tools/libclang/CMakeFiles/libclang.dir/CXExtractAPI.cpp.o
FAILED: tools/clang/tools/libclang/CMakeFiles/libclang.dir/CXExtractAPI.cpp.o
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-aarch64-linux/build/llvm_build0/bin/clang++ -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/b/sanitizer-aarch64-linux/build/build_default/tools/clang/tools/libclang -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/tools/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/include -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang/CXExtractAPI.cpp
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:164:38: error: member access into incomplete type 'SourceManager'
164 | return Context.getSourceManager().isInSystemHeader(D->getLocation());
| ^
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
34 | class SourceManager;
| ^
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:293:33: error: member access into incomplete type 'SourceManager'
293 | Context.getSourceManager().getPresumedLoc(Decl->getLocation());
| ^
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
34 | class SourceManager;
| ^
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:366:33: error: member access into incomplete type 'SourceManager'
366 | Context.getSourceManager().getPresumedLoc(Decl->getLocation());
| ^
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
34 | class SourceManager;
| ^
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:404:33: error: member access into incomplete type 'SourceManager'
404 | Context.getSourceManager().getPresumedLoc(Decl->getLocation());
| ^
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
34 | class SourceManager;
| ^
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:535:33: error: member access into incomplete type 'SourceManager'
535 | Context.getSourceManager().getPresumedLoc(Decl->getLocation());
| ^
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
34 | class SourceManager;
| ^
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:581:33: error: member access into incomplete type 'SourceManager'
Step 12 (build compiler-rt tsan_debug) failure: build compiler-rt tsan_debug (failure)
...
-- Performing Test COMPILER_RT_TARGET_HAS_ATOMICS
-- Performing Test COMPILER_RT_TARGET_HAS_ATOMICS - Success
-- Performing Test COMPILER_RT_TARGET_HAS_FCNTL_LCK
-- Performing Test COMPILER_RT_TARGET_HAS_FCNTL_LCK - Success
-- Performing Test COMPILER_RT_TARGET_HAS_UNAME
-- Performing Test COMPILER_RT_TARGET_HAS_UNAME - Success
-- Configuring done (52.4s)
-- Generating done (0.5s)
-- Build files have been written to: /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins
[5212/5220] Building CXX object tools/clang/tools/libclang/CMakeFiles/libclang.dir/CXExtractAPI.cpp.o
FAILED: tools/clang/tools/libclang/CMakeFiles/libclang.dir/CXExtractAPI.cpp.o
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-aarch64-linux/build/llvm_build0/bin/clang++ -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/b/sanitizer-aarch64-linux/build/build_default/tools/clang/tools/libclang -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/tools/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/include -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang/CXExtractAPI.cpp
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:164:38: error: member access into incomplete type 'SourceManager'
164 | return Context.getSourceManager().isInSystemHeader(D->getLocation());
| ^
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
34 | class SourceManager;
| ^
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:293:33: error: member access into incomplete type 'SourceManager'
293 | Context.getSourceManager().getPresumedLoc(Decl->getLocation());
| ^
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
34 | class SourceManager;
| ^
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:366:33: error: member access into incomplete type 'SourceManager'
366 | Context.getSourceManager().getPresumedLoc(Decl->getLocation());
| ^
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
34 | class SourceManager;
| ^
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:404:33: error: member access into incomplete type 'SourceManager'
404 | Context.getSourceManager().getPresumedLoc(Decl->getLocation());
| ^
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
34 | class SourceManager;
| ^
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:535:33: error: member access into incomplete type 'SourceManager'
535 | Context.getSourceManager().getPresumedLoc(Decl->getLocation());
| ^
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
34 | class SourceManager;
| ^
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:581:33: error: member access into incomplete type 'SourceManager'
Step 13 (build compiler-rt default) failure: build compiler-rt default (failure)
...
[406/412] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset4_5.S.o
[407/412] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset8_1.S.o
[408/412] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset4_2.S.o
[409/412] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset4_1.S.o
[410/412] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset2_5.S.o
[411/412] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset8_4.S.o
[412/412] Linking C static library /home/b/sanitizer-aarch64-linux/build/build_default/lib/clang/20/lib/aarch64-unknown-linux-gnu/libclang_rt.builtins.a
[5223/5239] No install step for 'builtins'
[5225/5239] Completed 'builtins'
[5226/5239] Building CXX object tools/clang/tools/libclang/CMakeFiles/libclang.dir/CXExtractAPI.cpp.o
FAILED: tools/clang/tools/libclang/CMakeFiles/libclang.dir/CXExtractAPI.cpp.o
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-aarch64-linux/build/llvm_build0/bin/clang++ -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/b/sanitizer-aarch64-linux/build/build_default/tools/clang/tools/libclang -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/tools/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/include -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang/CXExtractAPI.cpp
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:164:38: error: member access into incomplete type 'SourceManager'
164 | return Context.getSourceManager().isInSystemHeader(D->getLocation());
| ^
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
34 | class SourceManager;
| ^
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:293:33: error: member access into incomplete type 'SourceManager'
293 | Context.getSourceManager().getPresumedLoc(Decl->getLocation());
| ^
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
34 | class SourceManager;
| ^
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:366:33: error: member access into incomplete type 'SourceManager'
366 | Context.getSourceManager().getPresumedLoc(Decl->getLocation());
| ^
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
34 | class SourceManager;
| ^
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:404:33: error: member access into incomplete type 'SourceManager'
404 | Context.getSourceManager().getPresumedLoc(Decl->getLocation());
| ^
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
34 | class SourceManager;
| ^
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/ExtractAPI/ExtractAPIVisitor.h:535:33: error: member access into incomplete type 'SourceManager'
535 | Context.getSourceManager().getPresumedLoc(Decl->getLocation());
| ^
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include/clang/Basic/SourceLocation.h:34:7: note: forward declaration of 'clang::SourceManager'
34 | class SourceManager;
| ^
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/libclang/CXExtractAPI.cpp:25:
/home/b/sanitizer-aarch64-linux/build/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