https://llvm.org/bugs/show_bug.cgi?id=31836
Bug ID: 31836 Summary: pp_nonportable_path on absolute paths: broken delimiters Product: clang Version: trunk Hardware: PC OS: All Status: NEW Severity: normal Priority: P Component: -New Bugs Assignee: unassignedclangb...@nondot.org Reporter: axel.naum...@cern.ch CC: llvm-bugs@lists.llvm.org Classification: Unclassified Created attachment 17922 --> https://llvm.org/bugs/attachment.cgi?id=17922&action=edit Proposed patch - but without test On macOS I get $ echo '#include "/Users/Axel/Tmp/T.h"' | clang -cc1 -x c++ -E - # 1 "<stdin>" # 1 "<built-in>" 1 # 1 "<built-in>" 3 # 320 "<built-in>" 3 # 1 "<command line>" 1 # 1 "<built-in>" 2 # 1 "<stdin>" 2 <stdin>:1:10: warning: non-portable path to file '"/UUsersAaxelTtmpTT.h"'; specified path differs in case from file name on disk #include "/Users/Axel/Tmp/T.h" ^~~~~~~~~~~~~~~~~~~~~ "/UUsersAaxelTtmpTT.h" # 1 "/Users/Axel/Tmp/T.h" 1 # 2 "<stdin>" 2 1 warning generated. due to an off-by-one error for absolute paths. Attached patch seems to fixe that. I'd commit myself but I don't know how to write a test for that :-( Sorry! Axel. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs