]> granicus.if.org Git - clang/commit
[Coverage] Suppress creating a code region if the same area is covered by an expansio...
authorIgor Kudrin <ikudrin.dev@gmail.com>
Wed, 31 Aug 2016 07:04:16 +0000 (07:04 +0000)
committerIgor Kudrin <ikudrin.dev@gmail.com>
Wed, 31 Aug 2016 07:04:16 +0000 (07:04 +0000)
commit810bd3b69bba1beac896dd747f386b5fd310e2be
tree0826fcdd6f35e3bb8a084766aa06a12052305e78
parent616c97af74d59b5c83610ffb19168eb7413d4616
[Coverage] Suppress creating a code region if the same area is covered by an expansion region.

In most cases these code regions are just redundant, but sometimes they
could be assigned to the counter of the parent code region instead of
the counter of the nested block.

Differential Revision: https://reviews.llvm.org/D23987

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@280199 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CoverageMappingGen.cpp
test/CoverageMapping/macroception.c
test/CoverageMapping/macros.c