[cfe-dev] #ident preprocessor directive is ignored ?

Xavier Roche roche+kml2 at exalead.com
Wed Oct 24 06:47:33 PDT 2012


Hi folks!

The #ident preprocessor directive seems to be missing (actually it seems 
to be /ignored/) - is it a known behavior ?

Ie. the following program:

#ident "$$Description: ident-test $$"
int main(void) { return 0; }

Produces a binary without the given RCS string:

$ ident ident-test-clang
ident-test-clang:

[ Yes, I admit that the venerable RCS strings are a bit outdated, but 
there is no other standard way AFAIK to include useful meta-data in 
libraries, such as version/build information. ]

Cheers,
Xavier



More information about the cfe-dev mailing list