[clang] [NFC][SSAF] Move EntityPointerLevel to a separate folder (PR #191331)
LLVM Continuous Integration via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 12 22:23:10 PDT 2026
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `clang-sparc64-linux` running on `debian-stadler-sparc64` while building `clang` at step 6 "build stage 1".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/114/builds/390
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 6 (build stage 1) failure: 'ninja' (failure)
...
28 | buildUnsafeBufferUsageEntitySummary(EntityPointerLevelSet);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/llvm/clang/lib/ScalableStaticAnalysisFramework/Analyses/UnsafeBufferUsage/UnsafeBufferUsage.cpp:30:1: warning: ‘llvm::iterator_range<std::_Rb_tree_const_iterator<clang::ssaf::EntityPointerLevel> > clang::ssaf::getUnsafeBuffers(const UnsafeBufferUsageEntitySummary&)’ has not been declared within ‘clang::ssaf’
30 | ssaf::getUnsafeBuffers(const UnsafeBufferUsageEntitySummary &S) {
| ^~~~
/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/llvm/clang/include/clang/ScalableStaticAnalysisFramework/Analyses/UnsafeBufferUsage/UnsafeBufferUsage.h:30:3: note: only here as a ‘friend’
30 | getUnsafeBuffers(const UnsafeBufferUsageEntitySummary &);
| ^~~~~~~~~~~~~~~~
[1921/4283] Building CXX object tools/clang/lib/Frontend/CMakeFiles/obj.clangFrontend.dir/ChainedIncludesSource.cpp.o
[1922/4283] Building CXX object tools/clang/lib/ScalableStaticAnalysisFramework/Analyses/CMakeFiles/obj.clangScalableStaticAnalysisFrameworkAnalyses.dir/EntityPointerLevel/EntityPointerLevel.cpp.o
FAILED: [code=1] tools/clang/lib/ScalableStaticAnalysisFramework/Analyses/CMakeFiles/obj.clangScalableStaticAnalysisFrameworkAnalyses.dir/EntityPointerLevel/EntityPointerLevel.cpp.o
/usr/bin/c++ -DCLANG_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/stage1/tools/clang/lib/ScalableStaticAnalysisFramework/Analyses -I/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/llvm/clang/lib/ScalableStaticAnalysisFramework/Analyses -I/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/llvm/clang/include -I/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/stage1/tools/clang/include -I/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/stage1/include -I/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/llvm/llvm/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-maybe-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-dangling-pointer -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -O3 -DNDEBUG -std=c++17 -UNDEBUG -fno-exceptions -funwind-tables -fno-rtti -MD -MT tools/clang/lib/ScalableStaticAnalysisFramework/Analyses/CMakeFiles/obj.clangScalableStaticAnalysisFrameworkAnalyses.dir/EntityPointerLevel/EntityPointerLevel.cpp.o -MF tools/clang/lib/ScalableStaticAnalysisFramework/Analyses/CMakeFiles/obj.clangScalableStaticAnalysisFrameworkAnalyses.dir/EntityPointerLevel/EntityPointerLevel.cpp.o.d -o tools/clang/lib/ScalableStaticAnalysisFramework/Analyses/CMakeFiles/obj.clangScalableStaticAnalysisFrameworkAnalyses.dir/EntityPointerLevel/EntityPointerLevel.cpp.o -c /var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/llvm/clang/lib/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel/EntityPointerLevel.cpp
/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/llvm/clang/lib/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel/EntityPointerLevel.cpp:61:5: error: qualified name does not name a class before ‘:’ token
61 | : ConstStmtVisitor<EntityPointerLevelTranslator,
| ^
/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/llvm/clang/lib/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel/EntityPointerLevel.cpp:61:5: error: expected ‘{’ before ‘:’ token
/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/llvm/clang/lib/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel/EntityPointerLevel.cpp:61:5: error: expected unqualified-id before ‘:’ token
/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/llvm/clang/lib/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel/EntityPointerLevel.cpp: In function ‘llvm::Expected<std::set<clang::ssaf::EntityPointerLevel, clang::ssaf::EntityPointerLevel::Comparator> > clang::ssaf::translateEntityPointerLevel(const clang::Expr*, clang::ASTContext&, std::function<EntityId(EntityName)>)’:
/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/llvm/clang/lib/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel/EntityPointerLevel.cpp:236:3: error: ‘EntityPointerLevelTranslator’ was not declared in this scope
236 | EntityPointerLevelTranslator Translator(AddEntity, Ctx);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/llvm/clang/lib/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel/EntityPointerLevel.cpp:238:10: error: ‘Translator’ was not declared in this scope
238 | return Translator.translate(E);
| ^~~~~~~~~~
/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/llvm/clang/lib/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel/EntityPointerLevel.cpp: At global scope:
/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/llvm/clang/lib/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel/EntityPointerLevel.cpp:32:20: warning: ‘llvm::Error makeCreateEntityNameError(const clang::NamedDecl*, clang::ASTContext&)’ defined but not used [-Wunused-function]
32 | static llvm::Error makeCreateEntityNameError(const NamedDecl *FailedDecl,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/llvm/clang/lib/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel/EntityPointerLevel.cpp:25:20: warning: ‘llvm::Error makeUnsupportedStmtKindError(const clang::Stmt*)’ defined but not used [-Wunused-function]
25 | static llvm::Error makeUnsupportedStmtKindError(const Stmt *Unsupported) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/llvm/clang/lib/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel/EntityPointerLevel.cpp:19:13: warning: ‘bool hasPointerType(const clang::Expr*)’ defined but not used [-Wunused-function]
19 | static bool hasPointerType(const Expr *E) {
| ^~~~~~~~~~~~~~
[1923/4283] Building CXX object tools/clang/lib/ScalableStaticAnalysisFramework/Analyses/CMakeFiles/obj.clangScalableStaticAnalysisFrameworkAnalyses.dir/CallGraph/CallGraphExtractor.cpp.o
[1924/4283] Building CXX object tools/clang/lib/ScalableStaticAnalysisFramework/Analyses/CMakeFiles/obj.clangScalableStaticAnalysisFrameworkAnalyses.dir/UnsafeBufferUsage/UnsafeBufferUsageExtractor.cpp.o
[1925/4283] Building CXX object tools/clang/lib/Frontend/CMakeFiles/obj.clangFrontend.dir/VerifyDiagnosticConsumer.cpp.o
[1926/4283] Building CXX object tools/clang/lib/Frontend/CMakeFiles/obj.clangFrontend.dir/TestModuleFileExtension.cpp.o
[1927/4283] Building CXX object tools/clang/lib/Frontend/CMakeFiles/obj.clangFrontend.dir/InitPreprocessor.cpp.o
[1928/4283] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BreakFalseDeps.cpp.o
[1929/4283] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/Analysis.cpp.o
[1930/4283] Building CXX object tools/clang/lib/Frontend/CMakeFiles/obj.clangFrontend.dir/PrecompiledPreamble.cpp.o
[1931/4283] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BranchRelaxation.cpp.o
[1932/4283] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BasicBlockPathCloning.cpp.o
[1933/4283] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BasicBlockSectionsProfileReader.cpp.o
[1934/4283] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BasicBlockSections.cpp.o
[1935/4283] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AggressiveAntiDepBreaker.cpp.o
[1936/4283] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaTemplateInstantiateDecl.cpp.o
[1937/4283] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BasicBlockMatchingAndInference.cpp.o
```
</details>
https://github.com/llvm/llvm-project/pull/191331
More information about the cfe-commits
mailing list