Tried the scan-build, but the scan-view fails because it cannot find Reporter.py
Someone did some cleanup upstream removing Reporter.py without noticing that scan-build still requires it. That change was partially reverted to fix scan-build and the change has been cherry-picked into the release branch to be included in 12.0.1. I'll look at updating the port to 12.0.1rc1 which contains the fix. As a workaround, you could probably use the scan-view from an earlier llvm or swipe Reporter.py from one of them and put in the corresponding location in your ${LOCALBASE}/llvm12 tree.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=1d5b2f98a4186c8ed4ba8e5524651412cd16868d commit 1d5b2f98a4186c8ed4ba8e5524651412cd16868d Author: Brooks Davis <brooks@FreeBSD.org> AuthorDate: 2021-07-16 18:00:30 +0000 Commit: Brooks Davis <brooks@FreeBSD.org> CommitDate: 2021-07-16 18:00:30 +0000 devel/llvm12: Update to 12.0.1 release This release restores Reporter.py required for scan-build. [0] Correct missing renames of lit modules. [1] Remove no-op LLD_LINK option. PR: 256297 [0], 257123 [1] Reported by: phk [0], Derek Schrock <dereks@lifeofadishwasher.com> [1] devel/llvm12/Makefile | 12 +++++------- devel/llvm12/distinfo | 6 +++--- devel/llvm12/pkg-plist | 1 + 3 files changed, 9 insertions(+), 10 deletions(-)
A commit in branch 2021Q3 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=4bb3c89d4f9f88369982636fdf76dc8ae2943a27 commit 4bb3c89d4f9f88369982636fdf76dc8ae2943a27 Author: Brooks Davis <brooks@FreeBSD.org> AuthorDate: 2021-08-11 20:01:09 +0000 Commit: Brooks Davis <brooks@FreeBSD.org> CommitDate: 2021-08-11 20:01:09 +0000 devel/llvm12: Update to 12.0.1 release This release restores Reporter.py required for scan-build. [0] Correct missing renames of lit modules. [1] Remove no-op LLD_LINK option. PR: 256297 [0], 257123 [1] Reported by: phk [0], Derek Schrock <dereks@lifeofadishwasher.com> [1] (cherry picked from commit 1d5b2f98a4186c8ed4ba8e5524651412cd16868d) devel/llvm12/Makefile | 12 +++++------- devel/llvm12/distinfo | 6 +++--- devel/llvm12/pkg-plist | 1 + 3 files changed, 9 insertions(+), 10 deletions(-)