[llvm-bugs] [Bug 39648] New: [ms] [clang-cl] unlike microsoft cl, clang-cl doesn't search headers in unexistent paths

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Nov 13 06:15:31 PST 2018


https://bugs.llvm.org/show_bug.cgi?id=39648

            Bug ID: 39648
           Summary: [ms] [clang-cl] unlike microsoft cl, clang-cl doesn't
                    search  headers in unexistent paths
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows XP
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: eugvelesevich at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

On windows paths like <dir>/<unexistent dir or existent file>/../<file> are
correct. Therefore if someone includes header like this:
#include "../header.h"
and compiles with /I <unexistent path>, clang might not find header.h and fails
unlike microsoft cl.

clang checks existence of -I dir in InitHeaderSearch::AddUnmappedPath from
lib/Frontend/InitHeaderSearch.cpp

-- 
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/20181113/9f5ea717/attachment.html>


More information about the llvm-bugs mailing list