[cfe-dev] Listing predefined

Daniel Dunbar daniel at zuster.org
Tue Feb 24 20:47:32 PST 2009


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

On Tue, Feb 24, 2009 at 12:27 AM, Jean-Daniel Dupas
<devlists at shadowlab.org> wrote:
> Hello,
>
> 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 ?
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>



More information about the cfe-dev mailing list