[PATCH] D68733: Use -fdebug-compilation-dir to form absolute paths in coverage mappings
Reid Kleckner via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 9 17:00:06 PDT 2019
rnk marked an inline comment as done.
rnk added inline comments.
================
Comment at: clang/test/CoverageMapping/debug-dir.cpp:14
+//
+// RELATIVE: @__llvm_coverage_mapping = {{.*"\\01[^/]*foobar.*debug-dir\.cpp}}
+
----------------
vsk wrote:
> Does the "[^/]" check work on Windows, or is something like "[^/\\]" necessary?
It is insufficient on Windows, but the full string looks like `"\01\0Dfoobar\5Cdebug-dir.cpp`, so `[^/\\]` would match the `\0D`. If the `\0D` is the same across all systems, I could match that and it would suffice. As is, this will catch absolute paths on Unix only, which could be enough coverage.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68733/new/
https://reviews.llvm.org/D68733
More information about the cfe-commits
mailing list