Commit Graph

23 Commits

Author SHA1 Message Date
LCD 47
c10aa8d6d5 More shell escape fixes. 2014-02-13 17:38:47 +02:00
LCD 47
ca717b2c8d Cleanup: allow more exec overrides; formatting. 2014-02-08 09:45:51 +02:00
LCD 47
b9accaa810 Minor cleanup: &cpo guards and formatting. 2014-01-03 11:29:08 +02:00
LCD 47
e9b96912f1 Set clang as the default C/C++/Obj-C/Obj-C++ compiler if gcc is not found. 2014-01-03 08:56:02 +02:00
LCD 47
3694908d05 Registry cleanup, stage 2.
(1) Checkers now have an _exec attribute, and an accessor getExec().
(2) CreateAndRegisterChecker() initializes _exec from an optional argument
'exec'.  If this argument is missing, 'name' is used instead.
(3) Functions SyntaxCheckers_*_IsAvailable() are now dictionary functions.
(4) Functions SyntaxCheckers_*_IsAvailable() are now optional.  When
they are missing, they are assumed to return executable(expand(self.getExec())).
(5) Argument 'exe' of function syntastic#makeprg#build() is now optional.
If this argument is missing, expand(self.getExec()) is used to set checker
executables.
2013-11-02 10:44:06 +02:00
LCD 47
28bce98a68 Registry cleanup, stage 1.
Make SyntaxCheckers_*_GetLocList() dictionary functions.
Pass a reference to the current checker to syntastic#makeprg#build().
Add an optional 'redirect' argument to CreateAndRegisterChecker().
Change the sh checker to use the new dictionary functions.
Add a new registry method getLocListRaw() (needed for the sh checker).
2013-11-02 10:44:06 +02:00
LCD 47
ccef916d48 More magic / nomagic fun. 2013-10-25 15:56:09 +03:00
LCD 47
3e4501c1ff More refactoring: add s:GetCheckerVar(). 2013-06-25 09:59:07 +03:00
LCD 47
907ef20e3c New preprocess function "filterForeignErrors". Cleanup. 2013-06-24 11:46:27 +03:00
LCD 47
a8be73d113 Moved syntastic#gcc#GetLocList() to autoload/syntastic/c.vim. 2013-05-30 19:44:12 +03:00
LCD 47
f4a5842d18 Small fixes. 2013-05-21 15:02:42 +03:00
LCD 47
ea827bfa06 GCC refactor. 2013-05-21 10:03:04 +03:00
Martin Grenfell
602bbe7b24 break down some error format strings
Most errorformats are now expressed 1 "clause" per line.
2013-05-14 17:36:20 +01:00
LCD 47
1cab34063a Checkers cleanup.
Elliminates duplicate code.
Brings gcc cpp, objc, and ada checkers in synch with c.
Minor bug fixes.
2013-03-20 11:31:45 +02:00
Kévin Sztern
d1897fe482 Added documentation for the g:syntastic_c_checker option 2013-03-17 22:45:43 +01:00
Martin Grenfell
05feca29d7 fix a couple of bugs in the c/gcc checker
(introduced in the epic refactor)
2013-01-31 16:56:29 +00:00
Martin Grenfell
e0b8e87c93 refactor all the syntax checkers to use the new API and dir layout 2013-01-27 20:08:30 +00:00
Florent Bruneau
29d5b88e27 c/c++: force language in compiler invocation.
That way, the files are properly treated as C/C++ even when they don't
have the standard file extension

Signed-off-by: Florent Bruneau <florent.bruneau@intersec.com>
2012-12-16 18:44:20 +01:00
Florent Bruneau
4b0b81cddc c/c++: add an option to ignore default include dirs.
Signed-off-by: Florent Bruneau <florent.bruneau@intersec.com>
2012-12-16 18:44:20 +01:00
Florent Bruneau
91f3af2862 c: allow using clang to check C.
Since clang as a interface compatible with gcc's, use the gcc backend for
both.

Signed-off-by: Florent Bruneau <florent.bruneau@intersec.com>
2012-12-15 13:41:23 +01:00
kongo2002
42279e29f2 add output redirection to null device for C as well 2012-10-09 23:10:35 +02:00
kongo2002
d4ef5f7284 Merge remote-tracking branch 'daniel-walker/checkpatch-checker' 2012-09-23 23:24:50 +02:00
Daniel Walker
eef0180f8b Add a syntax checker for the Linux kernel checkpatch.pl utility.
I modified the C checker so checkpatch could be given as an alternate
checker for C files.
2012-09-06 18:41:09 -07:00