[cfe-dev] clang and #line directives
Moritz Lenz
moritz at casella.verplant.org
Thu Sep 11 09:39:25 PDT 2008
Hash: SHA1
At the moment #line preprocessor directives don't seem to be implemented:
// file foo.c
int main(int argc, char** argv){
#line 70
printf("Line %d\n", __LINE__);
return
}
$ ccc foo.c && ./a.out
clang -emit-llvm-bc -x c -o foo.o foo.c
llvm-ld -native -disable-internalize -o a.out foo.o
Line 3
Sadly parrot needs that print out 'Line 70' to work (the build system
has some weird hooks where macro names are associated with line numbers
in generated code).
Are there any plans to add that soonish?
Moritz
(Please keep me cc'ed, I'm not on the list)
More information about the cfe-dev
mailing list