[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:40 PST 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-gcc-ubuntu` running on `sie-linux-worker3` while building `clang` at step 6 "test-build-unified-tree-check-all".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/174/builds/10391
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp' FAILED ********************
Exit Code: 1
Command Output (stderr):
--
RUN: at line 1: /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/clang -cc1 -internal-isystem /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/lib/clang/20/include -nostdsysteminc -analyze -analyzer-constraints=range -setup-static-analyzer -analyzer-checker=alpha.webkit.UncountedLocalVarsChecker -verify /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/clang -cc1 -internal-isystem /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/lib/clang/20/include -nostdsysteminc -analyze -analyzer-constraints=range -setup-static-analyzer -analyzer-checker=alpha.webkit.UncountedLocalVarsChecker -verify /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp
error: 'expected-error' diagnostics seen but not expected:
File /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/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/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/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/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/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/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp Line 24 (directive at /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp:25): Local variable 'next' is uncounted and unsafe [alpha.webkit.UncountedLocalVarsChecker]
File /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp Line 50 (directive at /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp:51): Local variable 'obj2' is uncounted and unsafe [alpha.webkit.UncountedLocalVarsChecker]
File /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp Line 55 (directive at /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp:56): Local variable 'obj4' is uncounted and unsafe [alpha.webkit.UncountedLocalVarsChecker]
File /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp Line 78 (directive at /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp:79): Local variable 'obj2' is uncounted and unsafe [alpha.webkit.UncountedLocalVarsChecker]
File /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/Analysis/Checkers/WebKit/local-vars-counted-const-member.cpp Line 100 (directive at /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/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/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/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/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/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/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/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