Commit graph

128 commits

Author SHA1 Message Date
Jonathan Müller
cc5127979b Fix external macro use when fast_preprocessing=false
Forget to add standard library includes...

Fixes #39.
2018-02-17 16:06:12 +01:00
Jonathan Müller
b36a4a84b8 Properly detect include guard macros when fast preprocessing
Fixes #35.
2018-02-17 13:01:34 +01:00
Jonathan Müller
c7b13d89bc Fix CI errors 2018-02-01 18:52:37 +01:00
Jonathan Müller
8c426ac115 Add fast preprocessing mode 2018-02-01 18:27:41 +01:00
Jonathan Müller
bd4db2ce80 Add self-parsing integration test 2018-02-01 16:32:30 +01:00
Jonathan Müller
98e709fdfc Fix return type having same name as function 2018-02-01 09:24:30 +01:00
Jonathan Müller
4c78c69da0 Update copyright year 2018-01-26 08:39:09 +01:00
Zsolt Erhardt
ca2fae08a2 Bugfix/escaped character parsing (#32)
So as it turns out there's a nasty little piece of code in rapidjson's
source which breaks the preprocessor and will leave things a little bit
weird.

The test "preprocessor_parses_escaped_character" should prove
its validity.
2018-01-22 11:18:38 +01:00
Jonathan Müller
1e5271a4b7 Fix and improve C comment indent heuristic 2018-01-15 09:08:48 +01:00
Jonathan Müller
755f251da9 Steal comment of nested namespace 2017-12-22 10:54:37 +01:00
topisani
037619964f Comments and (failing) tests 2017-12-22 04:09:48 +01:00
Jonathan Müller
9df3b39e1e Fix comment matching for includes not on top of the file
See foonathan/standardese#83.
2017-12-13 20:49:44 +01:00
Jonathan Müller
2b3ddf360b Fix member variable type which is typedef in same class
Type spelling included all scopes. See foonathan/standardese#82.
2017-12-07 22:04:51 +01:00
Jonathan Müller
b2121b19c2 Add indentation C comment heuristics
See foonathan/standardese#84.
2017-12-06 19:34:36 +01:00
Jonathan Müller
8532de1479 Fix CMake 2017-11-11 10:33:01 +01:00
Jonathan Müller
d102d769c1 Improve visit facility 2017-10-31 18:03:44 +01:00
Jonathan Müller
6af95dde8e Add first example 2017-10-31 15:55:06 +01:00
Jonathan Müller
0875721452 Handle parsing of extern templates 2017-10-30 22:25:12 +01:00
Jonathan Müller
478fd4e90c Fix compilation errors 2017-10-30 10:02:00 +01:00
Jonathan Müller
10dd893b91 Add attribute convenience functions 2017-10-29 20:54:54 +01:00
Jonathan Müller
756fe351f1 Implement alignas parsing 2017-10-29 20:53:30 +01:00
Jonathan Müller
ccb2aaa189 Implement attribute parsing 2017-10-29 19:42:16 +01:00
Jonathan Müller
1572920650 Add function to tokenize strings 2017-10-19 19:02:27 +02:00
Manu343726
b1b0cad69a Code coverage with lcov
Includes:
 - A cmake script to setup lcov targets
 - A predefined cppast_coverage target (Disabled by default, enable by setting CPPAST_TEST_GCOV var to TRUE/ON/1)
 - Coverage report submission to coveralls.io
2017-10-11 21:25:37 +02:00
Jonathan Müller
a2929c0020 Handle newlines inside C comments 2017-10-11 17:09:54 +02:00
Jonathan Müller
0672e85186 Add and use cpp_token_string for unexposed entities 2017-10-11 14:15:44 +02:00
Jonathan Müller
dd0a20c6d5 Support C-style doc comments with ! 2017-10-11 10:15:44 +02:00
Jonathan Müller
7c30ba7c46 [breaking] Ensure matching line numbers after preprocessing
Unmatched documentation comments are not just a string, but also contain the line number as well.
2017-10-10 17:07:41 +02:00
Jonathan Müller
8e6c5ccf71 Fix type parser for types with keyword prefix
E.g. a type `constant` would become `const ant`.
2017-10-09 09:20:35 +02:00
Jonathan Müller
49d77c5543 Fix issue with asymmetric common parents of friend function and friend 2017-10-09 09:05:20 +02:00
Jonathan Müller
b3885bbb68 Remove comments in macro invocations
Just breaks to much.
2017-10-07 09:58:14 +02:00
Jonathan Müller
9c8260e685 [breaking] Change signature of do_get_options() 2017-07-19 12:49:41 +02:00
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