<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - pp_nonportable_path on absolute paths: broken delimiters"
href="https://llvm.org/bugs/show_bug.cgi?id=31836">31836</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>pp_nonportable_path on absolute paths: broken delimiters
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>Axel.Naumann@cern.ch
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=17922" name="attach_17922" title="Proposed patch - but without test">attachment 17922</a> <a href="attachment.cgi?id=17922&action=edit" title="Proposed patch - but without test">[details]</a></span>
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>