Commit graph

491 commits

Author SHA1 Message Date
Jonathan Müller
6af95dde8e Add first example 2017-10-31 15:55:06 +01:00
Jonathan Müller
6f128da87f Add default constructor to libclang_parser 2017-10-31 15:55:06 +01:00
Jonathan Müller
d8a230bee7 Add support for attributes 2017-10-31 13:16:34 +01:00
Jonathan Müller
0875721452 Handle parsing of extern templates 2017-10-30 22:25:12 +01:00
Jonathan Müller
da3d515d09 Fix issue with GCC attribute syntax 2017-10-30 18:52:11 +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
151e0b1a81 Add attribute information to cpp_entity 2017-10-21 12:47:08 +02:00
Jonathan Müller
3b9d410574 Add simple tokenization function 2017-10-21 12:45:44 +02:00
Jonathan Müller
1572920650 Add function to tokenize strings 2017-10-19 19:02:27 +02:00
Jonathan Müller
cfac41c7b5 Rename tokenizer stuff to include cx prefix 2017-10-14 13:15:38 +02:00
Jonathan Müller
6b55a13a83 Improve diagnostic interface 2017-10-12 07:48:20 +02:00
Jonathan Müller
49e63c4a9b Add format_diagnostic() function 2017-10-11 22:10:17 +02:00
Jonathan Müller
35293edc24 Add column to source_location 2017-10-11 21:56:02 +02:00
Jonathan Müller
3ae969aaae Add code coverage information 2017-10-11 21:44:02 +02:00
Jonathan Müller
9892cc52f0 Add badges 2017-10-11 21:30:11 +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
91a6f40d2d Match comments for unexposed entities 2017-10-11 17:31:55 +02:00
Jonathan Müller
0723bea947 Only generate line directive when necessary 2017-10-11 17:11:27 +02:00
Jonathan Müller
a2929c0020 Handle newlines inside C comments 2017-10-11 17:09:54 +02:00
Jonathan Müller
36d2a815a3 Fix code generation of unexposed entities 2017-10-11 15:10:35 +02:00
Jonathan Müller
69ca035b5a Improve handling of unexposed entities 2017-10-11 14:34:30 +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
e53fc5e231 Include semicolon in unexposed entity 2017-10-11 10:32:08 +02:00
Jonathan Müller
dd0a20c6d5 Support C-style doc comments with ! 2017-10-11 10:15:44 +02:00
Jonathan Müller
2777e396e6 Ensure matching line numbers in preprocessed file 2017-10-11 10:15:09 +02:00
Jonathan Müller
845ef61017 Use #line directive to enforce matching line numbers
clang preprocessing output is different on Windows for some reason...
2017-10-10 22:11:29 +02:00
Jonathan Müller
b28fff6c37 Fix preprocessor line numbers if includes aren't supported 2017-10-10 21:13:29 +02:00
Jonathan Müller
d088b44db6 Add line numbers to diagnostics 2017-10-10 17:16:10 +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
5c5f30aa7a Fix a couple of bugs 2017-10-09 09:38:49 +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
1b468ea476 Dump preprocessed file in verbose mode 2017-10-07 09:35:31 +02:00
Jonathan Müller
08e92c873c Show line number in error message 2017-10-07 09:29:20 +02:00
Jonathan Müller
be2ea9eb44 Hide "too many errors" error message 2017-10-07 09:24:18 +02:00
Jonathan Müller
b924d8f8d5 Fix code generation bugs 2017-10-02 18:36:00 +02:00
Jonathan Müller
2752d94e2a Add ability to generate code from code_generator 2017-10-02 17:32:46 +02:00
Jonathan Müller
5a987db7a7 Add ability to customize output 2017-10-02 11:34:34 +02:00
Jonathan Müller
682754649a Fix excluding last parameter 2017-10-01 21:23:34 +02:00
Jonathan Müller
6e3e358002 Fix whitespace in cv ref qualifiers 2017-09-30 11:36:56 +02:00
Jonathan Müller
a2472cd075 Remove trailing whitespace in type instantiation 2017-09-30 11:36:45 +02:00
Jonathan Müller
27a66f6632 [breaking] Pass current output to on_begin() and on_end() 2017-09-21 10:42:16 +02:00
Jonathan Müller
17ef990bb2 Add getter to retrieve main entity being outputted 2017-09-20 12:51:25 +02:00
Jonathan Müller
bb8a915279 Add getter to retrieve current output object of code generator 2017-09-20 12:47:35 +02:00
Jonathan Müller
dbececfb04 Add comment code generation text 2017-09-20 12:43:30 +02:00
Jonathan Müller
1c15e7fdc3 Fix compilation under clang 5 2017-09-19 20:53:05 +02:00