[clang] [WebKit checkers] Recognize adoptRef as a safe function (PR #119846)
LLVM Continuous Integration via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 19 11:24:05 PST 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `clang-cmake-x86_64-avx512-linux` running on `avx512-intel64` while building `clang` at step 7 "ninja check 1".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/133/builds/8703
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 7 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'Clang :: Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp' FAILED ********************
Exit Code: 1
Command Output (stderr):
--
RUN: at line 1: /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/clang -cc1 -internal-isystem /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/lib/clang/20/include -nostdsysteminc -analyze -analyzer-constraints=range -setup-static-analyzer -analyzer-checker=alpha.webkit.UncountedLocalVarsChecker -verify /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp
+ /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/clang -cc1 -internal-isystem /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/lib/clang/20/include -nostdsysteminc -analyze -analyzer-constraints=range -setup-static-analyzer -analyzer-checker=alpha.webkit.UncountedLocalVarsChecker -verify /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp
error: 'expected-error' diagnostics seen but not expected:
File /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp Line 17: object of type 'RefPtr<RefCountable>' cannot be assigned because its copy assignment operator is implicitly deleted
File /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp Line 23: object of type 'RefPtr<RefCountable>' cannot be assigned because its copy assignment operator is implicitly deleted
File /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp Line 33: object of type 'RefPtr<RefCountable>' cannot be assigned because its copy assignment operator is implicitly deleted
error: 'expected-warning' diagnostics expected but not seen:
File /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp Line 24 (directive at /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp:25): Local variable 'next' is uncounted and unsafe [alpha.webkit.UncountedLocalVarsChecker]
File /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp Line 50 (directive at /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp:51): Local variable 'obj2' is uncounted and unsafe [alpha.webkit.UncountedLocalVarsChecker]
File /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp Line 55 (directive at /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp:56): Local variable 'obj4' is uncounted and unsafe [alpha.webkit.UncountedLocalVarsChecker]
File /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp Line 78 (directive at /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp:79): Local variable 'obj2' is uncounted and unsafe [alpha.webkit.UncountedLocalVarsChecker]
File /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp Line 100 (directive at /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp:101): Local variable 'obj2' is uncounted and unsafe [alpha.webkit.UncountedLocalVarsChecker]
error: 'expected-note' diagnostics seen but not expected:
File /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Analysis/Checkers/WebKit/mock-types.h Line 128: copy assignment operator is implicitly deleted because 'RefPtr<RefCountable>' has a user-declared move constructor
File /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Analysis/Checkers/WebKit/mock-types.h Line 128: copy assignment operator is implicitly deleted because 'RefPtr<RefCountable>' has a user-declared move constructor
File /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Analysis/Checkers/WebKit/mock-types.h Line 128: copy assignment operator is implicitly deleted because 'RefPtr<RefCountable>' has a user-declared move constructor
11 errors generated.
--
********************
```
</details>
https://github.com/llvm/llvm-project/pull/119846
More information about the cfe-commits
mailing list