Page MenuHomeFreeBSD

Import bsd.clang-analyze.mk from NetBSD.
ClosedPublic

Authored by bdrewery on Feb 26 2016, 1:25 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Aug 4, 4:29 AM
Unknown Object (File)
Mon, Aug 4, 3:37 AM
Unknown Object (File)
Sun, Aug 3, 8:30 PM
Unknown Object (File)
Fri, Aug 1, 3:05 PM
Unknown Object (File)
Wed, Jul 30, 8:42 AM
Unknown Object (File)
Wed, Jul 30, 6:08 AM
Unknown Object (File)
Jul 7 2025, 3:41 PM
Unknown Object (File)
Jun 29 2025, 6:57 PM
Subscribers
None

Details

Summary

This allows 'make analyze' or 'make OBJ.clang-analyzer' to run the
Clang static analyzer and present results on stdout.

Sponsored by: EMC / Isilon Storage Division

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 2662
Build 2681: arc lint + arc unit

Event Timeline

bdrewery retitled this revision from to Import bsd.clang-analyze.mk from NetBSD..
bdrewery updated this object.
bdrewery edited the test plan for this revision. (Show Details)
bdrewery added reviewers: emaste, dim, imp.
share/mk/bsd.clang-analyze.mk
28–29

These file-specific flags I intend to add everywhere else as well so I didn't remove from this import.

share/mk/bsd.clang-analyze.mk
28–29

Though this would support some scattered uses of them already: http://dpaste.com/1F4TQHS

This begs connecting to sys/conf/kern.post.mk and sys/conf/kmod.mk too.

Fix dependency on DPSRCS and hook into kmod.mk.

Hook into kernel. Requires running 'make /full/path/to/src.clang-analyze' or 'make kernel-analyze'

Various fixes, documentation, remove from kernel since it won't work due to
lack of -I everywhere, and support HTML outputs.

This revision was automatically updated to reflect the committed changes.