[cfe-dev] How clang handle user's include
via cfe-dev
cfe-dev at lists.llvm.org
Tue Mar 14 02:17:09 PDT 2017
Hi,
I'm looking at the clang source code and I'm wandering where clang
handle the include from users.
If you have a simple C file foo.c:
#include <stdio.h>
#include "foo.h"
void foo(void) {
printf("foo\n");
}
int main(void) {
foo();
return 0;
}
and the corresponding foo.h header:
void foo(void);
Which part of clang "merge" (or inline) foo.c and foo.h together? If I
understand well that is what is happening, right?
Thank you for your answers!
Cheers,
Julien
More information about the cfe-dev
mailing list