Page MenuHomeFreeBSD

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

Authored by bdrewery on Feb 26 2016, 1:25 AM.
Tags
None
Referenced Files
F103752449: D5449.id13746.diff
Thu, Nov 28, 11:10 PM
Unknown Object (File)
Sat, Nov 23, 3:56 PM
Unknown Object (File)
Wed, Nov 6, 10:11 AM
Unknown Object (File)
Sat, Nov 2, 8:40 PM
Unknown Object (File)
Oct 26 2024, 11:34 AM
Unknown Object (File)
Oct 16 2024, 2:58 PM
Unknown Object (File)
Oct 7 2024, 9:05 PM
Unknown Object (File)
Oct 1 2024, 7:22 AM
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 2663
Build 2682: 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
29–30

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
29–30

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.