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)
Tue, Jun 25, 10:25 PM
Unknown Object (File)
Thu, Jun 13, 4:16 AM
Unknown Object (File)
May 17 2024, 5:40 PM
Unknown Object (File)
May 14 2024, 4:17 AM
Unknown Object (File)
May 9 2024, 8:00 AM
Unknown Object (File)
May 8 2024, 3:58 PM
Unknown Object (File)
May 8 2024, 2:56 PM
Unknown Object (File)
Apr 26 2024, 5:43 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 Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #13746)

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 ↗(On Diff #13746)

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.