Commit graph

50 commits

Author SHA1 Message Date
Jonathan Müller
7a4b2590d8 Cross platform fun 2018-11-28 19:26:15 +01:00
Jonathan Müller
8a60d52be1 Remove dependency on system include dir 2018-11-28 16:32:54 +01:00
Ingo Ruhnke
824f19effd Add handling of -isystem include flag (#70) 2018-10-25 23:24:41 +02:00
Jonathan Müller
a4c64dbc8d Implement a search for the clang binary 2018-09-24 16:28:16 +02:00
Jonathan Müller
c26d230d33 [breaking] Drop support for clang 3.9.1 2018-09-24 15:59:12 +02:00
Jonathan Müller
9f18b7f4d8 Update clang-format 2018-09-20 19:57:03 +02:00
Jonathan Müller
2d8be149aa Fix filename of diagnostics
See #37.
2018-04-02 16:43:32 +02:00
Jonathan Müller
045a33fbd6 Add a proper workaround for #46 2018-03-28 10:40:57 +02:00
Jonathan Müller
61a2a22542 Add option to change preprocessor -CC to -C
See #37.
2018-03-20 16:12:23 +01:00
Jonathan Müller
c2b86d1cad Fix full path of includes 2018-02-21 16:25:46 +01:00
Jonathan Müller
8c426ac115 Add fast preprocessing mode 2018-02-01 18:27:41 +01:00
Jonathan Müller
59c7ea31e1 Handle string literals in macro definition 2018-02-01 09:24:32 +01:00
Jonathan Müller
be0390446d Ignore macro expansion cursors 2018-02-01 09:24:32 +01:00
Jonathan Müller
ca5623b43d Add file name to error output 2018-02-01 09:22:34 +01:00
Jonathan Müller
4c78c69da0 Update copyright year 2018-01-26 08:39:09 +01:00
Jonathan Müller
3e8b2b429c Better handling of include refs 2018-01-11 21:22:28 +01:00
Jonathan Müller
755f251da9 Steal comment of nested namespace 2017-12-22 10:54:37 +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
6f128da87f Add default constructor to libclang_parser 2017-10-31 15:55:06 +01:00
Jonathan Müller
cfac41c7b5 Rename tokenizer stuff to include cx prefix 2017-10-14 13:15:38 +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
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
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
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
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
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
455af67837 Fix issue with using declarations 2017-04-19 17:25:15 +02:00
Jonathan Müller
e84925d5e4 Fix issue with relative include paths 2017-04-11 19:07:44 +02:00
Jonathan Müller
01b206d453 Add simple command line tool to view the AST 2017-04-10 19:58:17 +02:00
Jonathan Müller
9c46c96820 Fix and test include directive parsing 2017-04-03 09:49:29 +02:00
Jonathan Müller
e10a41fea8 Add proper build system 2017-04-02 18:38:28 +02:00
Jonathan Müller
db0e649bf6 Properly handle libclang diagnostics 2017-03-16 12:15:46 +01:00
Jonathan Müller
183aeaafde Parse documentation comments 2017-03-16 11:49:37 +01:00
Jonathan Müller
9267bbbff2 Parse free functions 2017-03-11 18:08:06 +01:00
Jonathan Müller
8fdfd3a707 Order preprocessing entities relative to other entities 2017-02-22 20:30:26 +01:00
Jonathan Müller
51567da741 Add actual parse framework 2017-02-21 22:10:41 +01:00
Jonathan Müller
467936cba4 Add parse_error handling 2017-02-21 20:47:15 +01:00
Jonathan Müller
108fd1b2ee Add diagnostic_logger 2017-02-16 22:08:56 +01:00
Jonathan Müller
a0c2eece5b Add and use libclang_error exception class 2017-02-16 21:33:41 +01:00
Jonathan Müller
51f7c3c2b2 Add libclang parsing outline 2017-02-16 21:19:20 +01:00
Jonathan Müller
0684be5788 Add preprocessor
The parser now parses macros and inclusion directives.
2017-02-12 21:43:14 +01:00
Jonathan Müller
ac8b81400c Add basic libclang parsing infrastructure 2017-02-10 21:49:35 +01:00