| Total Complexity | 3 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| 1 | import sys |
||
| 12 | (["int main() {}"], ), |
||
| 13 | (["bad things, this is no C code"], # Has no fixit |
||
| 14 | ["struct { int f0; } x = { f0 :1 };"], # Has a fixit and no range |
||
| 15 | ["int main() {int *b; return b}"]), # Has a fixit and a range |
||
| 16 | 'test.c') |
||
| 17 | |||
| 18 | |||
| 19 | ClangBearIgnoreTest = generate_local_bear_test( |
||
| 20 | ClangBear, |
||
| 21 | # Should ignore the warning, valid! |
||
| 22 | (["struct { int f0; } x = { f0 :1 };"],), |
||
| 23 | (), |
||
| 24 | 'test.c', |
||
| 25 | settings={'clang_cli_options': '-w'}) |
||
| 26 | |||
| 27 | |||
| 28 | def skip_test(): |
||
| 29 | try: |
||
| 30 | Index.create() |
||
| 31 | return False |
||
| 32 | except LibclangError as error: |
||
| 33 | return str(error) |
||
| 34 | |||
| 38 |