Skip to content

Commit 69841b1

Browse files
committed
Provide some default for args for full control
1 parent e4c88a6 commit 69841b1

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

linter.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727

2828

2929
class Clang(Linter):
30-
cmd = 'clang -fsyntax-only -fno-caret-diagnostics ${args} -'
30+
cmd = 'clang ${args} -'
3131
defaults = {
3232
'selector': 'source.c',
33-
'-Wall': True,
33+
'args': '-Wall -fsyntax-only -fno-caret-diagnostics',
3434
'-I +': [],
3535
'-x': 'c'
3636
}
@@ -41,10 +41,10 @@ class Clang(Linter):
4141

4242
class ClangPlus(Linter):
4343
name = 'clang++'
44-
cmd = 'clang -fsyntax-only -fno-caret-diagnostics ${args} -'
44+
cmd = 'clang ${args} -'
4545
defaults = {
4646
'selector': 'source.c++',
47-
'-Wall': True,
47+
'args': '-Wall -fsyntax-only -fno-caret-diagnostics',
4848
'-I +': [],
4949
'-x': 'c++'
5050
}

messages/2.0.0.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ We revamped the settings, and you probably have to make changes.
88
on the command line).
99

1010
* 'extra_flags' is now 'args' (which is the standard name in the
11-
SublimeLinter world).
11+
SublimeLinter world). Note that 'args' has the default value
12+
'-Wall -fsyntax-only -fno-caret-diagnostics'.
1213

1314
'c' and 'c++' files now have different settings sections.
1415

0 commit comments

Comments
 (0)