Commit graph

214 commits

Author SHA1 Message Date
Jonathan Müller
e6271f4c0d Silently ignore _Complex types 2017-06-22 13:57:59 +02:00
Jonathan Müller
43e50599e7 Make using declaration parser more robust 2017-06-22 13:57:59 +02:00
Jonathan Müller
bf35018bdf Fix libclang issue with USR, partial class template specialization and ref qualifiers 2017-06-22 13:57:59 +02:00
Jonathan Müller
13d9ac6147 Skip attribute cursors 2017-06-22 13:57:59 +02:00
Jonathan Müller
b0cd795836 Hide wrong warnings if header files are parsed directly 2017-06-20 22:17:44 +02:00
Jonathan Müller
084d8050b9 Allow attribute after namespace name 2017-06-20 22:17:44 +02:00
Jonathan Müller
d6e993a7b2 Optimize preprocessing string searching/comparing 2017-06-20 22:17:44 +02:00
Jonathan Müller
fd449dde4a Store full path of header as well 2017-06-20 22:17:44 +02:00
Jonathan Müller
206c771b1d Define macros to detect cppast when parsing the code 2017-06-06 14:44:19 +02:00
Jonathan Müller
ae87bc378b Add more version macros 2017-06-06 14:23:03 +02:00
Jonathan Müller
ff2fd014cd [breaking] Remove on_container_begin()/end()/leaf()
Replaced with general on_begin()/end()
2017-05-27 11:23:29 +02:00
Jonathan Müller
bb3253220b Add formatting options to code generation 2017-05-27 11:11:54 +02:00
Jonathan Müller
017dbb3114 Update submodules 2017-05-27 10:16:18 +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
c86e950847 Add exclude_return and exclude_target code generation options 2017-05-25 21:04:50 +02:00
Jonathan Müller
2af22083a6 Add support for C++17 parsing with cpp_1z option
Note: It is currently experimental.
2017-04-25 17:30:07 +02:00
Jonathan Müller
b8ad3acb79 Fix -Wconversion errors 2017-04-24 09:58:21 +02:00
Jonathan Müller
c3f2726f19 Ignore weird attribute in class children under Windows 2017-04-21 12:35:02 +02:00
Jonathan Müller
099ff00908 Workaround weird issue with broken children of function definition 2017-04-21 12:23:06 +02:00
Jonathan Müller
bc9b8433c8 Skip character literals when preprocessing 2017-04-21 11:52:30 +02:00
Jonathan Müller
d1fafdaa92 Add appveyor.yml 2017-04-21 11:18:36 +02:00
Jonathan Müller
1420abc81b Add .travis.yml 2017-04-21 10:12:06 +02:00
Jonathan Müller
6cd9404175 Workaround broken virtual implementation 2017-04-19 17:47:38 +02:00
Jonathan Müller
79fce1170b Handle decltype() in variadic expansion 2017-04-19 17:28:50 +02:00
Jonathan Müller
455af67837 Fix issue with using declarations 2017-04-19 17:25:15 +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
6e7a8c921c Skip strings when preprocessing 2017-04-19 16:52:56 +02:00
Jonathan Müller
b189c72280 Handle empty C comments in preprocessor 2017-04-19 16:38:18 +02:00
Jonathan Müller
f359885e87 Keep macro definitions when preprocessing
Other includes libclang encounters might depend on them.
2017-04-14 22:38:25 +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
f1fc25387e Fix USR collision with SFINAE in return type 2017-04-12 17:56:35 +02:00
Jonathan Müller
b6767ffdeb Force C++ and add current include dir when preprocessing 2017-04-12 17:44:50 +02:00
Jonathan Müller
de5900a278 Augment is_definition() & co to work for templates 2017-04-12 15:19:27 +02:00
Jonathan Müller
5b9fe7623f Skip ParmDecl when parsing class entities
Can happen in specialization to function types.
2017-04-12 15:14:05 +02:00
Jonathan Müller
4dc771ad6b Skip comments instead of writing them to output
This simplifies parsing.
2017-04-12 15:09:42 +02:00
Jonathan Müller
db20190fe4 Workaround clang bug with #undef output 2017-04-12 14:52:28 +02:00
Jonathan Müller
5d95c1ed5d Ignore dependent type for now 2017-04-11 20:37:25 +02:00
Jonathan Müller
4db09778b5 Add and parse cpp_static_assert 2017-04-11 20:37:24 +02:00
Jonathan Müller
d125869df5 Fix infinite recursion in decltype type 2017-04-11 20:37:24 +02:00
Jonathan Müller
1b57248fc8 Fix maximal munch parsing issue 2017-04-11 20:37:24 +02:00
Jonathan Müller
e84925d5e4 Fix issue with relative include paths 2017-04-11 19:07:44 +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
599524a894 Add definition info to AST dump 2017-04-11 18:33:58 +02:00
Jonathan Müller
0bc5097579 Fix typo in to_string 2017-04-10 21:47:48 +02:00
Jonathan Müller
487ef8e15d Fix issue with trailing return type parser 2017-04-10 21:47:16 +02:00