[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:21:27 PST 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `clang-aarch64-quick` running on `linaro-clang-aarch64-quick` while building `clang` at step 5 "ninja check 1".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/65/builds/9652
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 5 (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: /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/lib/clang/20/include -nostdsysteminc -analyze -analyzer-constraints=range -setup-static-analyzer -analyzer-checker=alpha.webkit.UncountedLocalVarsChecker -verify /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp
+ /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/lib/clang/20/include -nostdsysteminc -analyze -analyzer-constraints=range -setup-static-analyzer -analyzer-checker=alpha.webkit.UncountedLocalVarsChecker -verify /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp
error: 'expected-error' diagnostics seen but not expected:
File /home/tcwg-buildbot/worker/clang-aarch64-quick/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 /home/tcwg-buildbot/worker/clang-aarch64-quick/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 /home/tcwg-buildbot/worker/clang-aarch64-quick/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 /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp Line 24 (directive at /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp:25): Local variable 'next' is uncounted and unsafe [alpha.webkit.UncountedLocalVarsChecker]
File /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp Line 50 (directive at /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp:51): Local variable 'obj2' is uncounted and unsafe [alpha.webkit.UncountedLocalVarsChecker]
File /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp Line 55 (directive at /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp:56): Local variable 'obj4' is uncounted and unsafe [alpha.webkit.UncountedLocalVarsChecker]
File /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp Line 78 (directive at /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp:79): Local variable 'obj2' is uncounted and unsafe [alpha.webkit.UncountedLocalVarsChecker]
File /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp Line 100 (directive at /home/tcwg-buildbot/worker/clang-aarch64-quick/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 /home/tcwg-buildbot/worker/clang-aarch64-quick/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 /home/tcwg-buildbot/worker/clang-aarch64-quick/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 /home/tcwg-buildbot/worker/clang-aarch64-quick/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