c2lang / c2compiler

the c2 programming language
c2lang.org
Apache License 2.0
704 stars 49 forks source link

Trimming down Clang usage, mostly eliminating frameworks from headersearch #102

Closed lerno closed 5 years ago

lerno commented 5 years ago

The only thing untested here is checking whether #include directives still work as expected, otherwise it's only clang internal code that's touched.

lerno commented 5 years ago

There are unfortunately some larger diffs as I ran code reformat on some files as the formatting was poor and hard to read.

bvdberg commented 5 years ago

Are C macro's still working?

lerno commented 5 years ago

Everything should be working still, this should allow normal #include, but not #include with header maps, including precompiled headers and so on. It’s been a while since I did it, but I know you wanted to keep #include and the other C macros, they should be untouched.

bvdberg commented 5 years ago

I did some quick performance tests and it seems this branch is a bit faster... :) :)