Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | scan: support deprecated struct members | Jason Crain | 2020-01-26 | 1 | -0/+17 |
| | | | | | | | | | | | | | | | | | | gcc allows deprecating members of structs. For example: struct data { int x G_GNUC_DEPRECATED_FOR(replacement); }; However, this currently causes the entire struct to be marked as deprecated and confuses mkdb because it doesn't understand the G_GNUC_DEPRECATED_FOR symbol. Fix this by having the whole struct only be marked as deprecated if the '_DEPRECATED' is after the closing bracket of the struct, similar to how it already does for enums, and having scan automatically remove all G_GNUC_* decorators from struct members, similar to how it already does for functions. | ||||
* | scan: extract function to init the scanner from options | Stefan Sauer | 2019-07-25 | 1 | -0/+5 |
| | | | | This way we don't do this for each file. | ||||
* | mkdb: fix skipping of inline function bodies | Stefan Sauer | 2019-07-24 | 1 | -5/+85 |
| | | | | | Add a bunch of tests for this. Fixes #90 | ||||
* | Add scanner unit tests for deprecation decorators | Xavier Claessens | 2019-07-17 | 1 | -0/+67 |
| | |||||
* | scan: enable the new exception | Stefan Sauer | 2019-07-13 | 1 | -8/+6 |
| | | | | | Fixed one test and removed the other one as is was non-sense one. Add code to handle the exception one level up. | ||||
* | tests/scan: add another test for internal inline functions | Stefan Sauer | 2019-07-11 | 1 | -3/+12 |
| | | | | Add more variants to debugs #90. | ||||
* | scan: reorder std checks | Nicola Fontana | 2019-03-26 | 1 | -0/+18 |
| | | | | | Match _IS_%s_CLASS before _%s_CLASS. Fix #77. | ||||
* | scan:reorder imports in test | Stefan Sauer | 2019-02-15 | 1 | -1/+2 |
| | |||||
* | scan: fix test class name | Stefan Sauer | 2019-02-02 | 1 | -1/+1 |
| | | | | Only use ..TestCase for baseclasses. | ||||
* | scan: add a test for title extraction | Stefan Sauer | 2019-02-02 | 1 | -0/+9 |
| | |||||
* | scan: add more tests for the subsection logic | Stefan Sauer | 2019-02-02 | 1 | -1/+72 |
| | | | | Add tests verifying handling of gobject related symbols. | ||||
* | scan: use a header var in the macro tests | Stefan Sauer | 2019-02-02 | 1 | -12/+9 |
| | | | | This is how we do this in the other tests too. | ||||
* | scan: refactor subsection ordering to make the code testable. | Stefan Sauer | 2019-02-02 | 1 | -0/+7 |
| | |||||
* | Add tests for function pointer vars. | Stefan Sauer | 2019-02-02 | 1 | -0/+6 |
| | |||||
* | Add another test for typedef enum variants | Stefan Sauer | 2019-02-02 | 1 | -1/+6 |
| | |||||
* | tests: add scan test or typedefs | Stefan Sauer | 2019-02-01 | 1 | -0/+30 |
| | |||||
* | tests: add more scan tests for structs and unions | Stefan Sauer | 2019-01-31 | 1 | -0/+30 |
| | |||||
* | scan: uinify code path around inline functions. | Stefan Sauer | 2019-01-27 | 1 | -0/+11 |
| | | | | Add a helper and remove a special matcher. | ||||
* | scan: fix handling of deprecated sections | Stefan Sauer | 2019-01-27 | 1 | -0/+35 |
| | | | | | | | When adding a comment on the end of a deprecated section, we might start a new one. Fixes #72. | ||||
* | scan: add tests for internal functions | Stefan Sauer | 2018-12-19 | 1 | -2/+19 |
| | |||||
* | scan: move 3 tests for inline functions to unit tests | Stefan Sauer | 2018-12-18 | 1 | -0/+29 |
| | |||||
* | scan: add more tests for function pointer typedefs | Stefan Sauer | 2018-12-13 | 1 | -1/+34 |
| | | | | Fix handling of struct * return values and trim whitespace. | ||||
* | tests: fix deprecation warning and make text executable | Stefan Sauer | 2018-12-12 | 1 | -0/+0 |
| | |||||
* | scan: add more generic tests | Stefan Sauer | 2018-12-12 | 1 | -1/+18 |
| | | | | Fix return value for the branch that detects internal headers. | ||||
* | scan: add more coverage for functions | Stefan Sauer | 2018-12-11 | 1 | -3/+10 |
| | | | | Normalize more whitespace output. | ||||
* | scan: add tests for internal struct/union. | Stefan Sauer | 2018-12-09 | 1 | -0/+10 |
| | |||||
* | scan: add parametrized tests for function pointers | Stefan Sauer | 2018-12-09 | 1 | -1/+19 |
| | | | | Support more variants in function pointer return types. | ||||
* | scan: add tests for function pointers | Stefan Sauer | 2018-12-07 | 1 | -9/+15 |
| | |||||
* | scan: make more variables work | Stefan Sauer | 2018-12-06 | 1 | -4/+3 |
| | |||||
* | scan: add more type coverage | Stefan Sauer | 2018-12-03 | 1 | -8/+32 |
| | | | | Add more tests for functions and variables. | ||||
* | scan: move more tests to unit tests | Stefan Sauer | 2018-12-01 | 1 | -0/+2 |
| | |||||
* | scan: use parameterized for type tests | Stefan Sauer | 2018-12-01 | 1 | -11/+58 |
| | | | | Create a list of type names and test them in combination with modifiers. | ||||
* | tests: move more function tests to the unit tests | Stefan Sauer | 2018-11-30 | 1 | -5/+18 |
| | |||||
* | scan: fix more whitespace issues | Stefan Sauer | 2018-11-30 | 1 | -4/+3 |
| | |||||
* | scan: add some tests for functions | Stefan Sauer | 2018-11-30 | 1 | -28/+56 |
| | | | | Fix some whitespace issue in scan and also unify assertion helpers. | ||||
* | scan: move more enum/struct tests to unit tests | Stefan Sauer | 2018-11-27 | 1 | -0/+20 |
| | | | | Also remove some cases that are alreaady covered. | ||||
* | scan: move variable declaration tests into the unit test | Stefan Sauer | 2018-11-27 | 1 | -2/+32 |
| | |||||
* | scan: move test from the regression suite to the unit tests | Stefan Sauer | 2018-11-27 | 1 | -0/+16 |
| | |||||
* | scan: add tests for unions and fix detecting top-level unions | Stefan Sauer | 2018-11-26 | 1 | -0/+36 |
| | |||||
* | scan: add tests for enum | Stefan Sauer | 2018-11-26 | 1 | -1/+38 |
| | |||||
* | scan: add tests for structs | Stefan Sauer | 2018-11-26 | 1 | -2/+45 |
| | | | | Use textwrap module to handle indentation of testdata. | ||||
* | tests: use multiline strings for inputs to preserve newlines | Stefan Sauer | 2018-11-20 | 1 | -14/+13 |
| | | | | This gets us closer to the real inputs. | ||||
* | scan: fix types in test class name | Stefan Sauer | 2018-11-20 | 1 | -4/+4 |
| | |||||
* | scan: refactor testsuite to prepare for more tests | Stefan Sauer | 2018-11-20 | 1 | -11/+57 |
| | | | | | Extract a base-class so that we can have test classes for each decl-type. Remove 'tests' from the 'bugs' suite that we now cover in the unit-tests. | ||||
* | scan: actually add the test file :/ | Stefan Sauer | 2018-11-19 | 1 | -0/+76 |