Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit c815733

Browse files
committed
Update specs for LLVM v4
Looks like more warnings get a proper range from clang with LLVM v4.
1 parent 513993e commit c815733

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/linter-clang-spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe('The Clang provider for AtomLinter', () => {
2929
expect(messages[0].severity).toBe('error');
3030
expect(messages[0].excerpt).toBe("'nothing.h' file not found");
3131
expect(messages[0].location.file).toBe(`${miPath}.c`);
32-
expect(messages[0].location.position).toEqual([[1, 9], [1, 17]]);
32+
expect(messages[0].location.position).toEqual([[1, 9], [1, 20]]);
3333
});
3434

3535
it('finds a fatal error in "missing_import.cpp"', async () => {
@@ -39,7 +39,7 @@ describe('The Clang provider for AtomLinter', () => {
3939
expect(messages[0].severity).toBe('error');
4040
expect(messages[0].excerpt).toBe("'nothing.h' file not found");
4141
expect(messages[0].location.file).toBe(`${miPath}.cpp`);
42-
expect(messages[0].location.position).toEqual([[1, 9], [1, 17]]);
42+
expect(messages[0].location.position).toEqual([[1, 9], [1, 20]]);
4343
});
4444

4545
it('finds a fatal error in "missing_import.m"', async () => {
@@ -49,7 +49,7 @@ describe('The Clang provider for AtomLinter', () => {
4949
expect(messages[0].severity).toBe('error');
5050
expect(messages[0].excerpt).toBe("'nothing.h' file not found");
5151
expect(messages[0].location.file).toBe(`${miPath}.m`);
52-
expect(messages[0].location.position).toEqual([[1, 9], [1, 17]]);
52+
expect(messages[0].location.position).toEqual([[1, 9], [1, 20]]);
5353
});
5454

5555
it('finds a fatal error in "missing_import.mm"', async () => {
@@ -59,7 +59,7 @@ describe('The Clang provider for AtomLinter', () => {
5959
expect(messages[0].severity).toBe('error');
6060
expect(messages[0].excerpt).toBe("'nothing.h' file not found");
6161
expect(messages[0].location.file).toBe(`${miPath}.mm`);
62-
expect(messages[0].location.position).toEqual([[1, 9], [1, 17]]);
62+
expect(messages[0].location.position).toEqual([[1, 9], [1, 20]]);
6363
});
6464
});
6565
});

0 commit comments

Comments
 (0)