Listing predefined


Just a simple question.
I'm using this command to list predefined macros:

gcc -dM -E - < /dev/null | sort

But with ccc it does not works because it does not like empty input. Is there a simple way to list predefined macros using ccc ?

echo | ccc -dM -E -

will do it. I'd call this a bug, though, it is a bug in the language standard arguably.

Thank you. This is exactly what I need.

Hmm, this is clang actually complaining about standard input being
empty. We should probably get rid of that to match gcc.

Both of these work fine, however:
echo "" | ccc -dM -E -
ccc -dM -E -x c /dev/null

- Daniel