Bug ID: 34166
           Summary: Weird code coverage display for "#if" inside function
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs

llvm-cov show output for a simple testcase:

    1|      1|int main() {
    2|      1|  if (0) {
    3|      0|#if 0
    4|       |#endif
    5|      1|  }
    6|      1|return 0;
    7|      1|}

It looks even weirder with highlighting: the "#" of "#if 0" and the "endif" of
"#endif" are highlighted red.

I guess this behavior is inherited from the clang preprocessor, to some extent?
 It seems like we should be able to do better, though... preprocessor
directives have to be on their own line, so we should be able to exclude the
entire line containing the "#if", and the entire line containing the "#endif".

You are receiving this mail because:
You are on the CC list for the bug.
llvm-bugs mailing list

Reply via email to