Commit graph

96 commits

Author SHA1 Message Date
Jonathan Müller
0c4de49234 Pass current access specifier to code generator 2017-07-18 23:08:53 +02:00
Jonathan Müller
495b82158d Hide noexcept condition 2017-07-17 16:36:59 +02:00
Jonathan Müller
38dd1c9d18 Hide macro replacement 2017-07-17 16:24:21 +02:00
Jonathan Müller
4e06906876 Fix code generation exclusion 2017-07-17 16:18:14 +02:00
Jonathan Müller
68f2ab91a0 Override scope_name() in templates 2017-07-14 15:14:24 +02:00
Jonathan Müller
93d2c58f7f Add signature() to cpp_function_base 2017-07-10 19:26:55 +02:00
Jonathan Müller
3677aeb564 Add support for drive letters
Windows...
2017-06-27 21:58:17 +02:00
Jonathan Müller
abb2ba33d0 Add resolve_includes() function 2017-06-27 21:03:12 +02:00
Jonathan Müller
38831db073 Add parse_files() utility function 2017-06-27 16:42:59 +02:00
Jonathan Müller
6b7ca183f9 Add default_logger() and default_verbose_logger() 2017-06-27 16:42:59 +02:00
Jonathan Müller
44708fff76 [breaking] Move error_logged() from logger to parser 2017-06-27 16:42:59 +02:00
Jonathan Müller
d14965b24e Add basic compilation database parsing 2017-06-23 17:01:42 +02:00
Jonathan Müller
4534bd2842 Workaround converison operator parsing bug 2017-06-23 14:05:46 +02:00
Jonathan Müller
28bb72850a Run all tests on appveyor 2017-06-23 09:34:37 +02:00
Jonathan Müller
bcf65703d7 Add integration test parsing the standard library 2017-06-23 09:34:37 +02:00
Jonathan Müller
e355e7a653 Fix empty arguments to template instantiation 2017-06-23 09:34:36 +02:00
Jonathan Müller
f596ef398f Don't generate override and final on definitions 2017-06-22 13:57:59 +02:00
Jonathan Müller
b5a5e42955 Fix out-of-class destructor definition 2017-06-22 13:57:59 +02:00
Jonathan Müller
fd449dde4a Store full path of header as well 2017-06-20 22:17:44 +02:00
Jonathan Müller
bb3253220b Add formatting options to code generation 2017-05-27 11:11:54 +02:00
Jonathan Müller
315fb3a98f [breaking] Fix generation when excluding entities
Had to change generation options retrieval.
2017-05-25 23:22:59 +02:00
Jonathan Müller
59eee1f75a Remove duplicate newl at end of code generation for a file 2017-05-25 21:25:25 +02:00
Jonathan Müller
27fd67bad1 [breaking] Rename synopsis_options —> generation_options
More consistent.
2017-05-25 21:06:47 +02:00
Jonathan Müller
c86e950847 Add exclude_return and exclude_target code generation options 2017-05-25 21:04:50 +02:00
Tamás Szelei
2be20f60a2 Filtered visitor (#18)
New `visit()` overload taking a filter.

Closes #17.
2017-05-07 21:50:34 +02:00
Jonathan Müller
2ce5ddc295 Fix compatibility issue in enum test 2017-04-21 12:00:39 +02:00
Jonathan Müller
bc9b8433c8 Skip character literals when preprocessing 2017-04-21 11:52:30 +02:00
Jonathan Müller
1420abc81b Add .travis.yml 2017-04-21 10:12:06 +02:00
Jonathan Müller
1c973cb0fa Fix issue with conversion op parsing & instantiation type 2017-04-19 17:10:14 +02:00
Jonathan Müller
b189c72280 Handle empty C comments in preprocessor 2017-04-19 16:38:18 +02:00
Jonathan Müller
599f2bbff8 Add semantic parent to forward declarable entities 2017-04-14 22:06:27 +02:00
Jonathan Müller
cf7ea80768 Fix issue with out-of-line constructor definition of template class 2017-04-14 14:53:37 +02:00
Jonathan Müller
06cf090b35 Add cpp_scope_name to support templated scopes 2017-04-13 11:58:52 +02:00
Jonathan Müller
6894a025ca Remove full_name() function
Doesn't work for templates.
2017-04-13 11:35:22 +02:00
Jonathan Müller
133d51b630 Workaround token issue in unnamed variadic template parameter 2017-04-12 21:28:02 +02:00
Jonathan Müller
4db09778b5 Add and parse cpp_static_assert 2017-04-11 20:37:24 +02:00
Jonathan Müller
c5d6df957c Remove parameter children from e.g. cpp_function_base
Also template parameter children of cpp_template_template_parameter.
Now accessible over named function, consistent with base classes, other template parameters etc.
2017-04-11 18:50:02 +02:00
Jonathan Müller
aec3d77e2f Fix issue with constructor in template file 2017-04-10 21:15:35 +02:00
Jonathan Müller
75fbc577ad Fix issue when parsing anonymous namespaces 2017-04-10 21:02:23 +02:00
Jonathan Müller
01b206d453 Add simple command line tool to view the AST 2017-04-10 19:58:17 +02:00
Jonathan Müller
a8e2676f36 Fix error reporting in preprocessor 2017-04-10 19:58:17 +02:00
Jonathan Müller
45041e8b9c Implement equality for dependent types 2017-04-07 19:02:07 +02:00
Jonathan Müller
251e9abf5f Always expose underlying type of enum 2017-04-06 11:51:31 +02:00
Jonathan Müller
c3d1d97892 Add and parse cpp_friend
Only works in clang>=4.
2017-04-06 11:45:17 +02:00
Jonathan Müller
9c46c96820 Fix and test include directive parsing 2017-04-03 09:49:29 +02:00
Jonathan Müller
dc5abeb785 Ensure compatibility with clang 4.0.0
There are some bug fixes for libclang, so now some workarounds were broken.
2017-04-02 19:23:49 +02:00
Jonathan Müller
e10a41fea8 Add proper build system 2017-04-02 18:38:28 +02:00
Jonathan Müller
e9e9a3bbc5 Fix issue with functions returning functions 2017-03-31 15:20:41 +02:00
Jonathan Müller
9a0ac36715 Fix parsing of default value
It is now always unexposed, but works better.
2017-03-30 13:11:21 +02:00
Jonathan Müller
df684694cc Add and parse unexposed entity 2017-03-30 12:04:18 +02:00