[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 10:23:41 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-x64-windows-msvc` running on `windows-gcebot2` while building `clang` at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference:
```
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/clang-windows.py ...' (failure)
...
[5589/6046] Linking CXX executable bin\llvm-dlang-demangle-fuzzer.exe
[5590/6046] Building CXX object tools\llvm-diff\lib\CMakeFiles\LLVMDiff.dir\DiffLog.cpp.obj
[5591/6046] Building Opts.inc...
[5592/6046] Building CXX object tools\clang\tools\libclang\CMakeFiles\libclang.dir\CXCursor.cpp.obj
[5593/6046] Building CXX object tools\llvm-dwp\CMakeFiles\llvm-dwp.dir\llvm-dwp-driver.cpp.obj
[5594/6046] Building CXX object tools\clang\tools\libclang\CMakeFiles\libclang.dir\CIndexCodeCompletion.cpp.obj
[5595/6046] Building RC object tools\llvm-dwp\CMakeFiles\llvm-dwp.dir\__\__\resources\windows_version_resource.rc.res
[5596/6046] Building RC object tools\llvm-exegesis\CMakeFiles\llvm-exegesis.dir\__\__\resources\windows_version_resource.rc.res
[5597/6046] Building CXX object tools\llvm-diff\lib\CMakeFiles\LLVMDiff.dir\DiffConsumer.cpp.obj
[5598/6046] Building CXX object tools\clang\tools\libclang\CMakeFiles\libclang.dir\CXExtractAPI.cpp.obj
FAILED: tools/clang/tools/libclang/CMakeFiles/libclang.dir/CXExtractAPI.cpp.obj 
C:\b\slave\clang-x64-windows-msvc\build\stage1\bin\clang-cl.exe  /nologo -TP -DGTEST_HAS_RTTI=0 -DUNICODE -D_CINDEX_LIB_ -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\b\slave\clang-x64-windows-msvc\build\stage2\tools\clang\tools\libclang -IC:\b\slave\clang-x64-windows-msvc\llvm-project\clang\tools\libclang -IC:\b\slave\clang-x64-windows-msvc\llvm-project\clang\include -IC:\b\slave\clang-x64-windows-msvc\build\stage2\tools\clang\include -IC:\b\slave\clang-x64-windows-msvc\build\stage2\include -IC:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:__cplusplus /Zi -gcodeview-ghash /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new /W4  -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported /Gw /O2 /Ob2  -std:c++17 -MD  /EHs-c- /GR- -UNDEBUG /showIncludes /Fotools\clang\tools\libclang\CMakeFiles\libclang.dir\CXExtractAPI.cpp.obj /Fdtools\clang\tools\libclang\CMakeFiles\libclang.dir\ -c -- C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\tools\libclang\CXExtractAPI.cpp
In file included from C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\tools\libclang\CXExtractAPI.cpp:25:
C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\include\clang/ExtractAPI/ExtractAPIVisitor.h(164,38): error: member access into incomplete type 'SourceManager'
  164 |     return Context.getSourceManager().isInSystemHeader(D->getLocation());
      |                                      ^
C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\include\clang/Basic/SourceLocation.h(34,7): note: forward declaration of 'clang::SourceManager'
   34 | class SourceManager;
      |       ^
In file included from C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\tools\libclang\CXExtractAPI.cpp:25:
C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\include\clang/ExtractAPI/ExtractAPIVisitor.h(293,33): error: member access into incomplete type 'SourceManager'
  293 |       Context.getSourceManager().getPresumedLoc(Decl->getLocation());
      |                                 ^
C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\include\clang/Basic/SourceLocation.h(34,7): note: forward declaration of 'clang::SourceManager'
   34 | class SourceManager;
      |       ^
In file included from C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\tools\libclang\CXExtractAPI.cpp:25:
C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\include\clang/ExtractAPI/ExtractAPIVisitor.h(366,33): error: member access into incomplete type 'SourceManager'
  366 |       Context.getSourceManager().getPresumedLoc(Decl->getLocation());
      |                                 ^
C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\include\clang/Basic/SourceLocation.h(34,7): note: forward declaration of 'clang::SourceManager'
   34 | class SourceManager;
      |       ^
In file included from C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\tools\libclang\CXExtractAPI.cpp:25:
C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\include\clang/ExtractAPI/ExtractAPIVisitor.h(404,33): error: member access into incomplete type 'SourceManager'
  404 |       Context.getSourceManager().getPresumedLoc(Decl->getLocation());
      |                                 ^
C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\include\clang/Basic/SourceLocation.h(34,7): note: forward declaration of 'clang::SourceManager'
   34 | class SourceManager;
      |       ^
In file included from C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\tools\libclang\CXExtractAPI.cpp:25:
C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\include\clang/ExtractAPI/ExtractAPIVisitor.h(535,33): error: member access into incomplete type 'SourceManager'
  535 |       Context.getSourceManager().getPresumedLoc(Decl->getLocation());
      |                                 ^
C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\include\clang/Basic/SourceLocation.h(34,7): note: forward declaration of 'clang::SourceManager'
   34 | class SourceManager;
      |       ^
In file included from C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\tools\libclang\CXExtractAPI.cpp:25:
C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\include\clang/ExtractAPI/ExtractAPIVisitor.h(581,33): error: member access into incomplete type 'SourceManager'
Step 11 (stage 2 build) failure: stage 2 build (failure)
...
[5589/6046] Linking CXX executable bin\llvm-dlang-demangle-fuzzer.exe
[5590/6046] Building CXX object tools\llvm-diff\lib\CMakeFiles\LLVMDiff.dir\DiffLog.cpp.obj
[5591/6046] Building Opts.inc...
[5592/6046] Building CXX object tools\clang\tools\libclang\CMakeFiles\libclang.dir\CXCursor.cpp.obj
[5593/6046] Building CXX object tools\llvm-dwp\CMakeFiles\llvm-dwp.dir\llvm-dwp-driver.cpp.obj
[5594/6046] Building CXX object tools\clang\tools\libclang\CMakeFiles\libclang.dir\CIndexCodeCompletion.cpp.obj
[5595/6046] Building RC object tools\llvm-dwp\CMakeFiles\llvm-dwp.dir\__\__\resources\windows_version_resource.rc.res
[5596/6046] Building RC object tools\llvm-exegesis\CMakeFiles\llvm-exegesis.dir\__\__\resources\windows_version_resource.rc.res
[5597/6046] Building CXX object tools\llvm-diff\lib\CMakeFiles\LLVMDiff.dir\DiffConsumer.cpp.obj
[5598/6046] Building CXX object tools\clang\tools\libclang\CMakeFiles\libclang.dir\CXExtractAPI.cpp.obj
FAILED: tools/clang/tools/libclang/CMakeFiles/libclang.dir/CXExtractAPI.cpp.obj 
C:\b\slave\clang-x64-windows-msvc\build\stage1\bin\clang-cl.exe  /nologo -TP -DGTEST_HAS_RTTI=0 -DUNICODE -D_CINDEX_LIB_ -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\b\slave\clang-x64-windows-msvc\build\stage2\tools\clang\tools\libclang -IC:\b\slave\clang-x64-windows-msvc\llvm-project\clang\tools\libclang -IC:\b\slave\clang-x64-windows-msvc\llvm-project\clang\include -IC:\b\slave\clang-x64-windows-msvc\build\stage2\tools\clang\include -IC:\b\slave\clang-x64-windows-msvc\build\stage2\include -IC:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:__cplusplus /Zi -gcodeview-ghash /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new /W4  -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported /Gw /O2 /Ob2  -std:c++17 -MD  /EHs-c- /GR- -UNDEBUG /showIncludes /Fotools\clang\tools\libclang\CMakeFiles\libclang.dir\CXExtractAPI.cpp.obj /Fdtools\clang\tools\libclang\CMakeFiles\libclang.dir\ -c -- C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\tools\libclang\CXExtractAPI.cpp
In file included from C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\tools\libclang\CXExtractAPI.cpp:25:
C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\include\clang/ExtractAPI/ExtractAPIVisitor.h(164,38): error: member access into incomplete type 'SourceManager'
  164 |     return Context.getSourceManager().isInSystemHeader(D->getLocation());
      |                                      ^
C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\include\clang/Basic/SourceLocation.h(34,7): note: forward declaration of 'clang::SourceManager'
   34 | class SourceManager;
      |       ^
In file included from C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\tools\libclang\CXExtractAPI.cpp:25:
C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\include\clang/ExtractAPI/ExtractAPIVisitor.h(293,33): error: member access into incomplete type 'SourceManager'
  293 |       Context.getSourceManager().getPresumedLoc(Decl->getLocation());
      |                                 ^
C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\include\clang/Basic/SourceLocation.h(34,7): note: forward declaration of 'clang::SourceManager'
   34 | class SourceManager;
      |       ^
In file included from C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\tools\libclang\CXExtractAPI.cpp:25:
C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\include\clang/ExtractAPI/ExtractAPIVisitor.h(366,33): error: member access into incomplete type 'SourceManager'
  366 |       Context.getSourceManager().getPresumedLoc(Decl->getLocation());
      |                                 ^
C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\include\clang/Basic/SourceLocation.h(34,7): note: forward declaration of 'clang::SourceManager'
   34 | class SourceManager;
      |       ^
In file included from C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\tools\libclang\CXExtractAPI.cpp:25:
C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\include\clang/ExtractAPI/ExtractAPIVisitor.h(404,33): error: member access into incomplete type 'SourceManager'
  404 |       Context.getSourceManager().getPresumedLoc(Decl->getLocation());
      |                                 ^
C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\include\clang/Basic/SourceLocation.h(34,7): note: forward declaration of 'clang::SourceManager'
   34 | class SourceManager;
      |       ^
In file included from C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\tools\libclang\CXExtractAPI.cpp:25:
C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\include\clang/ExtractAPI/ExtractAPIVisitor.h(535,33): error: member access into incomplete type 'SourceManager'
  535 |       Context.getSourceManager().getPresumedLoc(Decl->getLocation());
      |                                 ^
C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\include\clang/Basic/SourceLocation.h(34,7): note: forward declaration of 'clang::SourceManager'
   34 | class SourceManager;
      |       ^
In file included from C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\tools\libclang\CXExtractAPI.cpp:25:
C:\b\slave\clang-x64-windows-msvc\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