[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


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

            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.

Consider:

Compile with -Ilib/Target/AArch64

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

The problem is that Includers searches these directories:
..\lib\Target\AArch64/InstPrinter
..\lib\Target\AArch64

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