[LLVMbugs] [Bug 18481] New: False positive in -Wmsvc-include

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jan 14 18:43:31 PST 2014


            Bug ID: 18481
           Summary: False positive in -Wmsvc-include
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: rnk at google.com
                CC: lantictac at gmail.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

This warning has false positives if the MSVC search rules also search a
directory passed as a -I option on the command line.


Compile with -Ilib/Target/AArch64

lib/Target/AArch64/AArch64AsmPrinter.cpp #include
lib/Target/AArch64/InstPrinter/AArch64InstPrinter.h #include

The problem is that Includers searches these directories:

Then it would search all the directories in -I on the command line, but it
doesn't get there because it finds AArch64BaseInfo.h while searching Includers.

We shouldn't emit a warning if we would've found it in SearchDirs.

Not sure how to do this straightforwardly.

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/20140115/9aae1980/attachment.html>

More information about the llvm-bugs mailing list