Hi tech@,

The base system includes the compiler-rt profile library for
source-based code coverage.

So here is a diff to document support in clang-local.1, the same
way we document support for the ubsan_minimal sanitizer runtime
which is also part of compiler-rt.

Comments? OK?

Index: share/man/man1/clang-local.1
===================================================================
RCS file: /cvs/src/share/man/man1/clang-local.1,v
retrieving revision 1.23
diff -u -p -r1.23 clang-local.1
--- share/man/man1/clang-local.1        18 Feb 2022 00:39:18 -0000      1.23
+++ share/man/man1/clang-local.1        4 May 2022 11:03:11 -0000
@@ -99,6 +99,15 @@ See the documentation for the
 .Fl fsanitize-minimal-runtime
 flag.
 .It
+The base system includes the compiler-rt profile library for
+source-based code coverage. See the documentation for the
+.Fl fprofile-instr-generate
+and
+.Fl fcoverage-mapping
+flags.
+Note that llvm-profdata and llvm-cov tools from devel/llvm are
+required to process coverage data and produce reports.
+.It
 The
 .Xr malloc 3 ,
 .Xr calloc 3 ,

Reply via email to