summaryrefslogtreecommitdiffstats
path: root/clang/test/CoverageMapping/objc.m
Commit message (Collapse)AuthorAgeFilesLines
* [Coverage] Emit gap areas in braces-optional statements (PR35387)Vedant Kumar2017-11-291-1/+1
| | | | | | | | | | | | Emit a gap area starting after the r-paren location and ending at the start of the body for the braces-optional statements (for, for-each, while, etc). The count for the gap area equal to the body's count. This extends the fix in r317758. Fixes PR35387, rdar://35570345 Testing: stage2 coverage-enabled build of clang, check-clang llvm-svn: 319373
* [Coverage] Emit a gap area after if conditionsVedant Kumar2017-11-091-3/+3
| | | | | | | | | | | | | | | | | | | The area immediately after the closing right-paren of an if condition should have a count equal to the 'then' block's count. Use a gap region to set this count, so that region highlighting for the 'then' block remains precise. This solves a problem we have with wrapped segments. Consider: 1| if (false) 2| foo(); Without a gap area starting after the condition, the wrapped segment from line 1 would make it look like line 2 is executed, when it's not. rdar://35373009 llvm-svn: 317758
* Suppress uninteresting warnings in test/CoverageMapping, NFC.Vedant Kumar2017-02-251-1/+1
| | | | llvm-svn: 296247
* [PGO] cc1 option name change for profile instrumentationRong Xu2016-02-041-1/+1
| | | | | | | | | | | | This patch changes cc1 option -fprofile-instr-generate to an enum option -fprofile-instrument={clang|none}. It also changes cc1 options -fprofile-instr-generate= to -fprofile-instrument-path=. The driver level option -fprofile-instr-generate and -fprofile-instr-generate= remain intact. This change will pave the way to integrate new PGO instrumentation in IR level. Review: http://reviews.llvm.org/D16730 llvm-svn: 259811
* InstrProf: Always emit a coverage region for the condition of an ifJustin Bogner2015-02-191-3/+4
| | | | | | | | When tools like llvm-cov show regions, it's much easier to understand what's happening if the condition of an if shows a counter as well as the body. llvm-svn: 229813
* InstrProf: Remove CoverageMapping::HasCodeBefore, it isn't usedJustin Bogner2015-02-031-6/+6
| | | | llvm-svn: 228035
* Coverage mapping: fix mapping for objective-c for statementAlex Lorenz2014-08-201-0/+18
| | | | llvm-svn: 216082
* Coverage mapping: fix mapping for objective-c message expressionAlex Lorenz2014-08-201-0/+11
llvm-svn: 216081
OpenPOWER on IntegriCloud