[LLVMbugs] [Bug 15613] New: [-verify] expected-warning does not allow me to specify the file

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Mar 27 13:38:29 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=15613

            Bug ID: 15613
           Summary: [-verify] expected-warning does not allow me to
                    specify the file
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jordan_rose at apple.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

If I include a header file that only warns for certain tests, I should be able
to use expected-warning in my main source file to warn about diagnostics in the
header file.

I hit this today trying to use our current hack, which is that
VerifyDiagnosticConsumer only checks line numbers, not matching files. However,
because it uses SourceLocations to track the expected locations, there's no way
to refer to line 65 in a header file if the main source file is less than 65
lines long.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130327/92fbe153/attachment.html>


More information about the llvm-bugs mailing list