]> granicus.if.org Git - clang/commit
[Coverage] Explicitly mark the l.h.s of && and || (fixes PR33465)
authorVedant Kumar <vsk@apple.com>
Tue, 17 Oct 2017 06:51:54 +0000 (06:51 +0000)
committerVedant Kumar <vsk@apple.com>
Tue, 17 Oct 2017 06:51:54 +0000 (06:51 +0000)
commit762d1e77cbcec32f272b58e412d4bca839626f95
tree512a56965877fc7c53f36f2c2b6e3b0b768b8b6f
parent185bad56b324fc6da4bc6264cf98b2a743241549
[Coverage] Explicitly mark the l.h.s of && and || (fixes PR33465)

This makes it possible to view sub-line region counts for the l.h.s of
&& and || expressions in coverage reports.

It also fixes PR33465, which shows an example of incorrect coverage
output for an assignment statement containing '||'.

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