Commit graph

194 commits

Author SHA1 Message Date
Jonathan Müller
6d261cef16 Add parser macro for the parsed code
This allows detection of the cppast "compiler" from the code that is
being compiled.
2017-06-09 19:53:27 +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
6023f293df Add ability to format generated code 2017-05-27 22:47:47 +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
074759fafb Add ability to exclude parts of generation
Also fix bugs when excluding entities.
2017-05-25 23:39:08 +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
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
63c34e1ca3 Compile clean with -Werror 2017-04-24 10:09:49 +02:00
Jonathan Müller
56b0232bf4 Enable -Werror on Travishh 2017-04-24 09:59:35 +02:00
Jonathan Müller
b8ad3acb79 Fix -Wconversion errors 2017-04-24 09:58:21 +02:00
Jonathan Müller
243df2f77b Update submodule 2017-04-24 09:55:53 +02:00
Jonathan Müller
d5887e331d Update git submodules 2017-04-21 13:40:48 +02:00
Nicole Mazzuca
e87b4c67c2 you're -> your (#16) 2017-04-21 13:19:58 +02:00
Jonathan Müller
9a906d5e0c Add Appveyor CI 2017-04-21 12:47:06 +02:00
Jonathan Müller
fa8ee81b36 Fix OSX compatibility issue 2017-04-21 12:36:01 +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
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
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
Emerson Ferreira
ce7d200a7c Change to proper em dashes from hyphens (#15) 2017-04-20 19:54:32 +02:00
Emerson Ferreira
55caa04c56 Fix grammatical errors, and add missing graphical symbols (#14)
*  Hyphens->"em" dashes, semicolon at bullet points

* Bring back eaten character 'd'
2017-04-20 19:34:02 +02:00
Jonathan Müller
2d36545e40 Update README.md 2017-04-20 11:44:44 +02:00
Jonathan Müller
7eed246333 Add license and readme 2017-04-19 20:01:04 +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
da033cdebe Properly handle anonymous entities in tool 2017-04-19 17:25:15 +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
4af4250f55 Add issue template 2017-04-18 15:31:40 +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
365677b2c9 Fix missing include 2017-04-12 18:19:08 +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