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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

$ 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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to