mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-28 06:46:52 +08:00
#392 Handle clang header errors too
This commit is contained in:
23
test/handler/test_clang_handler.vader
Normal file
23
test/handler/test_clang_handler.vader
Normal file
@@ -0,0 +1,23 @@
|
||||
Execute(clang errors from included files should be parsed correctly):
|
||||
AssertEqual
|
||||
\ [
|
||||
\ {
|
||||
\ 'lnum': 3,
|
||||
\ 'type': 'E',
|
||||
\ 'text': 'Problems were found in the header (See :ALEDetail)',
|
||||
\ 'detail': join([
|
||||
\ './b.h:1:1: error: expected identifier or ''(''',
|
||||
\ '{{{',
|
||||
\ '^',
|
||||
\ '1 error generated.',
|
||||
\ ], "\n"),
|
||||
\ },
|
||||
\ ],
|
||||
\ ale#handlers#gcc#HandleGCCFormat(347, [
|
||||
\ 'In file included from test.c:3:',
|
||||
\ 'In file included from ./a.h:1:',
|
||||
\ './b.h:1:1: error: expected identifier or ''(''',
|
||||
\ '{{{',
|
||||
\ '^',
|
||||
\ '1 error generated.',
|
||||
\ ])
|
||||
Reference in New Issue
Block a user