SUSE / clang-extract

Other
7 stars 3 forks source link

clang-create creates file with bogus name #60

Closed andreas-schwab closed 2 days ago

andreas-schwab commented 2 days ago

$ cat hello.c

include

include

void hello (void) { if (fprintf (stderr, "Hello World!\n") == EOF) perror ("fprintf"); }

int main (void) { setlocale (LC_ALL, ""); hello (); } $ clang-extract -DCE_EXTRACT_FUNCTIONS=hello hello.c In file included from hello.c:1: In file included from hello.c:1: In file included from /usr/include/stdio.h:28: In file included from /usr/include/bits/libc-header-start.h:33: In file included from /usr/include/features.h:394: In file included from /usr/include/features-time64.h:21: /usr/include/bits/timesize.h:19:1: warning: clang-extract: project #include's the same file multiple times. Only the first is registered. 19 | #include <bits/wordsize.h> | ^~~~~~~~~ $ ls -Q "hello.CE.c" "hello.c" "\377\177"

giulianobelinassi commented 2 days ago

I am sorry, but what is the issue here?

andreas-schwab commented 2 days ago

clang-create creates file with bogus name

giulianobelinassi commented 2 days ago

which file?

andreas-schwab commented 2 days ago

The one with the bogus name.

giulianobelinassi commented 2 days ago

The one with the bogus name.

which is? can you point it?

andreas-schwab commented 2 days ago
                     ^^^^^^^^^^
giulianobelinassi commented 2 days ago
                     ^^^^^^^^^^

There are three files in this directory.

  1. "hello.CE.c"
  2. "hello.c"
  3. "\377\177"

Which one are you talking about?

andreas-schwab commented 2 days ago

The one with the bogus name.

giulianobelinassi commented 2 days ago

Closing this to the reason of trolling.

This will be reported.