[llvm-bugs] [Bug 48746] New: command line defines are truncated at double slash

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jan 13 23:52:04 PST 2021


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

            Bug ID: 48746
           Summary: command line defines are truncated at double slash
           Product: clang
           Version: 11.0
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: glebius at FreeBSD.org
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

A define specified via -D that has two slashes together will be truncated.
Example:

> echo TFILE > test
> cpp  -DTFILE="/some/path//foo/bar" test
# 1 "test"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 338 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "test" 2
/some/path
>

Expected output of the preprocessor should have /some/path//foo/bar.

-- 
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/20210114/a4640be7/attachment.html>


More information about the llvm-bugs mailing list