Andrew Kelley
|
923e78785d
|
attempt to get preprocessor entities from libclang
I'm pretty sure it's impossible, the API does not
expose the macro expansion value
and the source location points to the macro's name,
not its value.
|
2016-01-28 23:18:39 -07:00 |
|
Andrew Kelley
|
53c14da220
|
parseh understands bodyless struct used in fn
|
2016-01-28 21:53:46 -07:00 |
|
Andrew Kelley
|
c3516b8004
|
parseh handles self referential structs and fn pointers
|
2016-01-28 21:38:01 -07:00 |
|
Andrew Kelley
|
13220ccb51
|
parsh understands constant sized arrays
|
2016-01-28 16:09:06 -07:00 |
|
Andrew Kelley
|
ed3117a77f
|
parseh understands elaborated structs and enums
|
2016-01-28 15:41:12 -07:00 |
|
Andrew Kelley
|
47c3a30310
|
parseh understands simple structs
|
2016-01-28 14:49:34 -07:00 |
|
Andrew Kelley
|
a09b505558
|
null pointer optimization for ?&T
this is necessary for the parseh change where all
pointers from .h files are maybe pointers.
|
2016-01-28 14:04:22 -07:00 |
|
Andrew Kelley
|
f1c5d3d3a1
|
add parseh tests
|
2016-01-28 11:54:34 -07:00 |
|
Andrew Kelley
|
474340a003
|
parseh recognizes C enums
|
2016-01-28 11:03:44 -07:00 |
|
Andrew Kelley
|
137bb51e20
|
parseh: add --c-import-warnings option
|
2016-01-28 00:25:10 -07:00 |
|
Andrew Kelley
|
97c61313da
|
c_import of stdio.h works for some functions
See #88
|
2016-01-27 23:23:02 -07:00 |
|
Andrew Kelley
|
b6354ddd5a
|
move AST rendering code to separate file
|
2016-01-27 21:10:38 -07:00 |
|
Andrew Kelley
|
c281533638
|
build command supports -isystem argument
|
2016-01-27 19:22:58 -07:00 |
|
Andrew Kelley
|
69d4f55fbf
|
parseh: still produce output when not all types are known
|
2016-01-27 19:07:01 -07:00 |
|
Andrew Kelley
|
d1ac1abd34
|
parseh correctly handles C's void type
|
2016-01-27 16:30:52 -07:00 |
|
Andrew Kelley
|
75cab48c1e
|
parseh: recognize typedef types
and fix const qualifier on pointers
|
2016-01-27 16:00:43 -07:00 |
|
Andrew Kelley
|
fa1ea6062b
|
parseh works for simple functions
|
2016-01-27 03:12:06 -07:00 |
|
Andrew Kelley
|
0278468479
|
upgrade to the libclang C++ API
c_import creates a tmp .h file and parses it with libclang,
reporting any errors found.
See #88
|
2016-01-27 00:01:49 -07:00 |
|
Andrew Kelley
|
890714b8ca
|
Revert "delete parseh"
This reverts commit 18374ea8f1.
|
2016-01-18 21:28:54 -07:00 |
|
Andrew Kelley
|
18374ea8f1
|
delete parseh
we'll have to switch to the clang C++ api anyway
we'll revive this code later
|
2016-01-15 14:16:07 -07:00 |
|
Andrew Kelley
|
f17e20d5fe
|
instead of *mut and *const, & and &const
closes #33
|
2015-12-14 18:10:25 -07:00 |
|
Andrew Kelley
|
e411467e1d
|
add number literal type
it gets implicitly casted to whatever is needed.
closes #24
|
2015-12-14 02:46:37 -07:00 |
|
Andrew Kelley
|
7b181b51ad
|
parseh: cleanup types
|
2015-12-09 01:23:58 -07:00 |
|
Andrew Kelley
|
dfda85e870
|
ability to call external variadic functions
|
2015-12-09 01:03:04 -07:00 |
|
Andrew Kelley
|
4eff5f114b
|
parseh: better results for stdio.h
|
2015-12-08 23:22:25 -07:00 |
|
Andrew Kelley
|
face8d65a8
|
parseh: add c header files
|
2015-12-08 17:51:59 -07:00 |
|
Andrew Kelley
|
cd6283e8c4
|
parseh: fix wrong fn parameters in some cases
|
2015-12-04 11:45:11 -07:00 |
|
Andrew Kelley
|
5144c4fa37
|
exporting .h file supports void
|
2015-12-03 17:30:44 -07:00 |
|
Andrew Kelley
|
a398afa7cc
|
more C header interoperability
|
2015-12-03 17:06:33 -07:00 |
|
Andrew Kelley
|
96d4d0d674
|
parseh: detect fixed size integer types
|
2015-12-03 16:12:10 -07:00 |
|
Andrew Kelley
|
ad3f98c615
|
parseh command, parses a C .h file and produces extern decls
|
2015-12-03 16:00:14 -07:00 |
|