Commit graph

134 commits

Author SHA1 Message Date
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
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
a2472cd075 Remove trailing whitespace in type instantiation 2017-09-30 11:36:45 +02:00
Jonathan Müller
1c15e7fdc3 Fix compilation under clang 5 2017-09-19 20:53:05 +02:00
Jonathan Müller
3677aeb564 Add support for drive letters
Windows...
2017-06-27 21:58:17 +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
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
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
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
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
206c771b1d Define macros to detect cppast when parsing the code 2017-06-06 14:44:19 +02:00
Jonathan Müller
017dbb3114 Update submodules 2017-05-27 10:16:18 +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