[llvm-bugs] [Bug 50461] New: clang doesn't chop newline in -U command line option

via llvm-bugs llvm-bugs at lists.llvm.org
Tue May 25 05:05:44 PDT 2021


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

            Bug ID: 50461
           Summary: clang doesn't chop newline in -U command line option
           Product: clang
           Version: 11.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: adobriyan at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at metafoo.co.uk

$ echo -n -e '_' | clang -xc -E "$(echo -n -e '-U_\n#include<stddef.h>')" -

The command above will open and preprocess include file.

gcc -D, gcc -U, clang -D delete everything after first newline.

-- 
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/20210525/c70117c5/attachment.html>


More information about the llvm-bugs mailing list