<div dir="ltr">Hi, llvm/clang experts<div><br></div><div>I need to get the branch coverage for some testing code. But i found gcov can't give a expected coverage which may</div><div>count some 'hidden branch' in (See <a href="https://stackoverflow.com/questions/42003783/lcov-gcov-branch-coverage-with-c-producing-branches-all-over-the-place">stackoverflow answer</a>). Instead, I turn to use clang and the 'source-based code coverage' feature</div><div>may be a right choice. But i can't find anything to describe branch coverage explicitly on the <a href="https://clang.llvm.org/docs/SourceBasedCodeCoverage.html">official site</a>. </div><div><br></div><div>So how to use clang to get branch coverage by utilizing 'source-based...' feature?  And is <i style="font-weight:bold">region coverage </i>equivalent to branch coverage?</div><div>(I tested on a simple program and region coverage seems pretty close to branch coverage)</div><div><br></div><div>Any help is highly appreciated</div><div><br></div><div>Thanks,</div><div>Ted Xie</div><div><div><br></div><div><br></div></div></div>