[clang] [LifetimeSafety] Revamp test suite using unittests (PR #149158)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 22 04:16:43 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `arc-builder` running on `arc-worker` while building `clang` at step 6 "test-build-unified-tree-check-all".

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

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
...
 6957 | typedef void *CXRemapping;
      |               ^~~~~~~~~~~
/buildbot/worker/arc-folder/llvm-project/clang/include/clang-c/Index.h:6969:70: warning: 'CXRemapping' is deprecated [-Wdeprecated-declarations]
 6969 | CINDEX_DEPRECATED CINDEX_LINKAGE void clang_remap_dispose(CXRemapping);
      |                                                                      ^
/buildbot/worker/arc-folder/llvm-project/clang/include/clang-c/Index.h:6957:15: note: declared here
 6957 | typedef void *CXRemapping;
      |               ^~~~~~~~~~~
53.414 [914/18/75] Building CXX object tools/clang/unittests/CMakeFiles/AllClangUnitTests.dir/Driver/ToolChainTest.cpp.o
57.559 [913/18/76] Building CXX object tools/clang/unittests/CMakeFiles/AllClangUnitTests.dir/Analysis/LifetimeSafetyTest.cpp.o
FAILED: tools/clang/unittests/CMakeFiles/AllClangUnitTests.dir/Analysis/LifetimeSafetyTest.cpp.o 
/usr/bin/c++ -DEXPERIMENTAL_KEY_INSTRUCTIONS -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Itools/clang/unittests -I/buildbot/worker/arc-folder/llvm-project/clang/unittests -I/buildbot/worker/arc-folder/llvm-project/clang/include -Itools/clang/include -Iinclude -I/buildbot/worker/arc-folder/llvm-project/llvm/include -I/buildbot/worker/arc-folder/llvm-project/clang/unittests/Tooling -I/buildbot/worker/arc-folder/llvm-project/third-party/unittest/googletest/include -I/buildbot/worker/arc-folder/llvm-project/third-party/unittest/googlemock/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -O3 -DNDEBUG  -Wno-variadic-macros -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -std=c++17 -MD -MT tools/clang/unittests/CMakeFiles/AllClangUnitTests.dir/Analysis/LifetimeSafetyTest.cpp.o -MF tools/clang/unittests/CMakeFiles/AllClangUnitTests.dir/Analysis/LifetimeSafetyTest.cpp.o.d -o tools/clang/unittests/CMakeFiles/AllClangUnitTests.dir/Analysis/LifetimeSafetyTest.cpp.o -c /buildbot/worker/arc-folder/llvm-project/clang/unittests/Analysis/LifetimeSafetyTest.cpp
/buildbot/worker/arc-folder/llvm-project/clang/unittests/Analysis/LifetimeSafetyTest.cpp:70:28: error: declaration of 'std::unique_ptr<clang::TestAST> clang::lifetimes::internal::{anonymous}::LifetimeTestRunner::TestAST' changes meaning of 'TestAST' [-fpermissive]
   70 |   std::unique_ptr<TestAST> TestAST;
      |                            ^~~~~~~
In file included from /buildbot/worker/arc-folder/llvm-project/clang/unittests/Analysis/LifetimeSafetyTest.cpp:12:
/buildbot/worker/arc-folder/llvm-project/clang/include/clang/Testing/TestAST.h:72:7: note: 'TestAST' declared here as 'class clang::TestAST'
   72 | class TestAST {
      |       ^~~~~~~
57.903 [913/17/77] Building CXX object tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/ConfigParseTest.cpp.o
58.415 [913/16/78] Building CXX object tools/clang/unittests/CMakeFiles/AllClangUnitTests.dir/Analysis/CloneDetectionTest.cpp.o
In file included from /buildbot/worker/arc-folder/llvm-project/clang/include/clang/Frontend/ASTUnit.h:16,
                 from /buildbot/worker/arc-folder/llvm-project/clang/include/clang/Frontend/FrontendAction.h:23,
                 from /buildbot/worker/arc-folder/llvm-project/clang/include/clang/Tooling/Tooling.h:35,
                 from /buildbot/worker/arc-folder/llvm-project/clang/unittests/Analysis/CloneDetectionTest.cpp:11:
/buildbot/worker/arc-folder/llvm-project/clang/include/clang-c/Index.h:6959:78: warning: 'CXRemapping' is deprecated [-Wdeprecated-declarations]
 6959 | CINDEX_DEPRECATED CINDEX_LINKAGE CXRemapping clang_getRemappings(const char *);
      |                                                                              ^
/buildbot/worker/arc-folder/llvm-project/clang/include/clang-c/Index.h:6957:15: note: declared here
 6957 | typedef void *CXRemapping;
      |               ^~~~~~~~~~~
/buildbot/worker/arc-folder/llvm-project/clang/include/clang-c/Index.h:6962:56: warning: 'CXRemapping' is deprecated [-Wdeprecated-declarations]
 6962 | clang_getRemappingsFromFileList(const char **, unsigned);
      |                                                        ^
/buildbot/worker/arc-folder/llvm-project/clang/include/clang-c/Index.h:6957:15: note: declared here
 6957 | typedef void *CXRemapping;
      |               ^~~~~~~~~~~
/buildbot/worker/arc-folder/llvm-project/clang/include/clang-c/Index.h:6964:78: warning: 'CXRemapping' is deprecated [-Wdeprecated-declarations]
 6964 | CINDEX_DEPRECATED CINDEX_LINKAGE unsigned clang_remap_getNumFiles(CXRemapping);
      |                                                                              ^
/buildbot/worker/arc-folder/llvm-project/clang/include/clang-c/Index.h:6957:15: note: declared here
 6957 | typedef void *CXRemapping;
      |               ^~~~~~~~~~~
/buildbot/worker/arc-folder/llvm-project/clang/include/clang-c/Index.h:6967:71: warning: 'CXRemapping' is deprecated [-Wdeprecated-declarations]
 6967 | clang_remap_getFilenames(CXRemapping, unsigned, CXString *, CXString *);
      |                                                                       ^
/buildbot/worker/arc-folder/llvm-project/clang/include/clang-c/Index.h:6957:15: note: declared here
 6957 | typedef void *CXRemapping;
      |               ^~~~~~~~~~~

```

</details>

https://github.com/llvm/llvm-project/pull/149158


More information about the cfe-commits mailing list