Closed oliverlee closed 5 days ago
@llvm/issue-subscribers-clang-static-analyzer
Author: Oliver Lee (oliverlee)
Could you please try 19 or main
branch? https://godbolt.org should be helpful.
I wasn't able to repro with 18.1.0 or 19 on godbolt.
Have you checked the release notes of clang-19? There I claim support for static call operators. Befofe clang-19 they didn't work.
I haven't checked with Clang 19 yet - I'll try to do so soon.
I'm a bit surprised as I have been defining all other function objects in a project with static call operators and I only know observed an issue with clang-tidy. I'm also surprised that godbolt isn't showing the same behavior. I first noticed the issue in a github runner using linux and then was able to reproduce it locally on my mac.
No issues on linux x86_64 with 19.1.0 or 20.0.0.
Toolchain installed on macOS via homebrew. The same error seems to occur on the 18.1.8 releases from llvm for aarch64-macos and x86_64-linux. Possibly related to the static call operator?