Commit graph

226 commits

Author SHA1 Message Date
Jonathan Müller
abb2ba33d0 Add resolve_includes() function 2017-06-27 21:03:12 +02:00
Jonathan Müller
7092946091 Add parse_database() function 2017-06-27 16:42:59 +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
6dd85cb7a7 Silently ignore multiple registration of files 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
1053429b00 Fix issue with duplicated entity definition
Closes #21.
2017-06-23 17:00:57 +02:00
Jonathan Müller
4534bd2842 Workaround converison operator parsing bug 2017-06-23 14:05:46 +02:00
Jonathan Müller
204961b7b1 Throw exception on multiple parse error 2017-06-23 14:05:46 +02:00
Jonathan Müller
23888ca9c4 Workaround libclang issue with USR of conversion function 2017-06-23 14:05:46 +02:00
Jonathan Müller
70ac5cf111 Add integration test that parses the standard library 2017-06-23 09:43:17 +02:00
Jonathan Müller
28bb72850a Run all tests on appveyor 2017-06-23 09:34:37 +02:00
Jonathan Müller
4583a2dd03 Run all tests on Travis 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
232842f2f6 Fix constructor prefix skipping 2017-06-23 09:34:36 +02:00
Jonathan Müller
7a9f6fdfac Improve function scope parsing 2017-06-23 09:34:36 +02:00
Jonathan Müller
c07f80ccf3 Improve skip brackets heuristic 2017-06-22 13:57:59 +02:00
Jonathan Müller
7e71a64437 Allow function names enclosed in parenthesis 2017-06-22 13:57:59 +02:00
Jonathan Müller
35c090e7c3 Put full path in quotes 2017-06-22 13:57:59 +02:00
Jonathan Müller
9590b63c2c Fix missing paren in destructor tokens 2017-06-22 13:57:59 +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
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
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