[clang] [clang-format] Fix a bug in FormatToken::isObjCAccessSpecifier() (PR #136109)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 17 19:16:27 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `openmp-offload-amdgpu-runtime-2` running on `rocm-worker-hw-02` while building `clang` at step 7 "Add check check-clang".

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

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

```
Step 7 (Add check check-clang) failure: test (failure)
...
[303/313] Linking CXX executable tools/clang/unittests/Interpreter/ClangReplInterpreterTests
[304/313] Linking CXX executable tools/clang/unittests/AST/ASTTests
[305/313] Linking CXX executable tools/clang/unittests/Tooling/ToolingTests
[306/313] Building CXX object tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/ObjCPropertyAttributeOrderFixerTest.cpp.o
[307/313] Building CXX object tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/FormatTokenSourceTest.cpp.o
[308/313] Building CXX object tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/MacroExpanderTest.cpp.o
[309/313] Building CXX object tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/MacroCallReconstructorTest.cpp.o
[310/313] Building CXX object tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/QualifierFixerTest.cpp.o
[311/313] Building CXX object tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/TokenAnnotatorTest.cpp.o
[312/313] Linking CXX executable tools/clang/unittests/Format/FormatTests
FAILED: tools/clang/unittests/Format/FormatTests 
: && /usr/bin/c++ -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 -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -O3 -DNDEBUG -Wl,--gc-sections tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/BracesInserterTest.cpp.o tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/BracesRemoverTest.cpp.o tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/CleanupTest.cpp.o tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/ConfigParseTest.cpp.o tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/DefinitionBlockSeparatorTest.cpp.o tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/FormatTest.cpp.o tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/FormatTestComments.cpp.o tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/FormatTestCSharp.cpp.o tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/FormatTestJS.cpp.o tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/FormatTestJava.cpp.o tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/FormatTestJson.cpp.o tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/FormatTestMacroExpansion.cpp.o tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/FormatTestObjC.cpp.o tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/FormatTestProto.cpp.o tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/FormatTestRawStrings.cpp.o tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/FormatTestSelective.cpp.o tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/FormatTestTableGen.cpp.o tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/FormatTestTextProto.cpp.o tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/FormatTestVerilog.cpp.o tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/FormatTokenSourceTest.cpp.o tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/FormatReplacementTest.cpp.o tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/IntegerLiteralSeparatorTest.cpp.o tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/MacroCallReconstructorTest.cpp.o tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/MacroExpanderTest.cpp.o tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/MatchFilePathTest.cpp.o tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/NamespaceEndCommentsFixerTest.cpp.o tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/ObjCPropertyAttributeOrderFixerTest.cpp.o tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/QualifierFixerTest.cpp.o tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/SortImportsTestJS.cpp.o tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/SortImportsTestJava.cpp.o tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/SortIncludesTest.cpp.o tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/UsingDeclarationsSorterTest.cpp.o tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/TokenAnnotatorTest.cpp.o -o tools/clang/unittests/Format/FormatTests  -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/lib  lib/libllvm_gtest_main.so.21.0git  lib/libllvm_gtest.so.21.0git  lib/libclangFormat.so.21.0git  lib/libclangToolingCore.so.21.0git  lib/libclangRewrite.so.21.0git  lib/libclangBasic.so.21.0git  lib/libLLVMSupport.so.21.0git  -Wl,-rpath-link,/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/lib && :
/usr/bin/ld: tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/TokenAnnotatorTest.cpp.o: undefined reference to symbol '_ZNK5clang5Token16getObjCKeywordIDEv'
/usr/bin/ld: /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/lib/libclangLex.so.21.0git: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

```

</details>

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


More information about the cfe-commits mailing list