[clang-tools-extra] [clangd] Support outgoing calls in call hierarchy (PR #77556)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 25 21:02:05 PST 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-5` while building `clang-tools-extra` at step 5 "build-unified-tree".

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

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

```
Step 5 (build-unified-tree) failure: build (failure)
...
105.762 [1614/8/4327] Linking CXX static library lib/libclangdMain.a
106.311 [1613/8/4328] Linking CXX executable bin/clangd-indexer
106.716 [1612/8/4329] Linking CXX executable bin/clangd
106.732 [1611/8/4330] Building CXX object tools/clang/tools/extra/clangd/xpc/framework/CMakeFiles/ClangdXPCLib.dir/ClangdXPC.cpp.o
106.883 [1610/8/4331] Linking CXX shared library lib/libClangdXPCLib.dylib
107.007 [1609/8/4332] Creating ClangdXPC framework
107.038 [1608/8/4333] Building CXX object tools/clang/tools/extra/clangd/xpc/test-client/CMakeFiles/clangd-xpc-test-client.dir/ClangdXPCTestClient.cpp.o
107.385 [1607/8/4334] Linking CXX executable bin/clangd-xpc-test-client
107.878 [1606/8/4335] Building CXX object tools/clang/tools/extra/clangd/index/dex/dexp/CMakeFiles/dexp.dir/Dexp.cpp.o
109.071 [1605/8/4336] Building CXX object tools/clang/tools/extra/clangd/unittests/CMakeFiles/ClangdTests.dir/CallHierarchyTests.cpp.o
FAILED: tools/clang/tools/extra/clangd/unittests/CMakeFiles/ClangdTests.dir/CallHierarchyTests.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /opt/homebrew/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/tools/extra/clangd/unittests -I/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang-tools-extra/clangd/unittests -I/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang-tools-extra/clangd/../include-cleaner/include -I/Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/tools/extra/clangd/../clang-tidy -I/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/include -I/Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/include -I/Users/buildbot/buildbot-root/aarch64-darwin/build/include -I/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/include -I/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang-tools-extra/clangd -I/Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/tools/extra/clangd -I/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/third-party/unittest/googletest/include -I/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/third-party/unittest/googlemock/include -isystem /opt/homebrew/include -fPIC -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 -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk  -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -MD -MT tools/clang/tools/extra/clangd/unittests/CMakeFiles/ClangdTests.dir/CallHierarchyTests.cpp.o -MF tools/clang/tools/extra/clangd/unittests/CMakeFiles/ClangdTests.dir/CallHierarchyTests.cpp.o.d -o tools/clang/tools/extra/clangd/unittests/CMakeFiles/ClangdTests.dir/CallHierarchyTests.cpp.o -c /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang-tools-extra/clangd/unittests/CallHierarchyTests.cpp
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang-tools-extra/clangd/unittests/CallHierarchyTests.cpp:601:33: error: use of undeclared identifier 'fromRanges'
                                fromRanges(Source.range("Callee")))));
                                ^
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang-tools-extra/clangd/unittests/CallHierarchyTests.cpp:622:33: error: use of undeclared identifier 'fromRanges'
                                fromRanges(Source.range("Callee")))));
                                ^
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang-tools-extra/clangd/unittests/CallHierarchyTests.cpp:651:59: error: use of undeclared identifier 'fromRanges'
              ElementsAre(AllOf(from(withName("caller")), fromRanges())));
                                                          ^
3 errors generated.
109.374 [1605/7/4337] Building CXX object tools/clang/tools/extra/clangd/unittests/CMakeFiles/ClangdTests.dir/ASTSignalsTests.cpp.o
109.603 [1605/6/4338] Building CXX object tools/clang/tools/extra/clangd/unittests/CMakeFiles/ClangdTests.dir/ASTTests.cpp.o
112.199 [1605/5/4339] Building CXX object tools/clang/tools/extra/clangd/unittests/CMakeFiles/ClangdTests.dir/CodeCompletionStringsTests.cpp.o
112.446 [1605/4/4340] Building CXX object tools/clang/tools/extra/clangd/unittests/CMakeFiles/ClangdTests.dir/ClangdLSPServerTests.cpp.o
113.441 [1605/3/4341] Building CXX object tools/clang/tools/extra/clangd/unittests/CMakeFiles/ClangdTests.dir/BackgroundIndexTests.cpp.o
114.042 [1605/2/4342] Building CXX object tools/clang/tools/extra/clangd/unittests/CMakeFiles/ClangdTests.dir/ClangdTests.cpp.o
119.879 [1605/1/4343] Building CXX object tools/clang/tools/extra/clangd/unittests/CMakeFiles/ClangdTests.dir/CodeCompleteTests.cpp.o
ninja: build stopped: subcommand failed.

```

</details>

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


More information about the cfe-commits mailing list