2017-04-11 20:05:41 +00:00
|
|
|
Execute(clang errors from included files should be parsed correctly):
|
|
|
|
AssertEqual
|
|
|
|
\ [
|
|
|
|
\ {
|
2017-10-25 21:29:36 +00:00
|
|
|
\ 'lnum': 1,
|
|
|
|
\ 'col': 1,
|
|
|
|
\ 'filename': './b.h',
|
2017-04-11 20:05:41 +00:00
|
|
|
\ 'type': 'E',
|
2017-10-25 21:29:36 +00:00
|
|
|
\ 'text': 'expected identifier or ''(''',
|
2017-04-11 20:05:41 +00:00
|
|
|
\ },
|
2018-07-30 19:09:43 +00:00
|
|
|
\ {
|
|
|
|
\ 'lnum': 3,
|
|
|
|
\ 'text': 'Error found in header. See :ALEDetail',
|
|
|
|
\ 'detail': join([
|
|
|
|
\ 'In file included from <stdin>:3:',
|
|
|
|
\ 'In file included from ./a.h:1:',
|
|
|
|
\ './b.h:1:1: error: expected identifier or ''(''',
|
|
|
|
\ '{{{',
|
|
|
|
\ '^',
|
|
|
|
\ ], "\n"),
|
|
|
|
\ },
|
2017-04-11 20:05:41 +00:00
|
|
|
\ ],
|
2018-07-30 19:09:43 +00:00
|
|
|
\ ale#handlers#gcc#HandleGCCFormatWithIncludes(347, [
|
|
|
|
\ 'In file included from <stdin>:3:',
|
2017-04-11 20:05:41 +00:00
|
|
|
\ 'In file included from ./a.h:1:',
|
|
|
|
\ './b.h:1:1: error: expected identifier or ''(''',
|
|
|
|
\ '{{{',
|
|
|
|
\ '^',
|
|
|
|
\ '1 error generated.',
|
|
|
|
\ ])
|