Commit Graph

14 Commits

Author SHA1 Message Date
LCD 47
6c9735335f Remove support for YCM.
YCM has now its own navigation functions, so there is no longer any need
to call it from syntastic.

g:syntastic_delayed_redraws is also gone.  Syntastic doesn't use popup
menus, and the only purpose of this variable was to provide a workaround
for a problem triggered by YCM.

References:
https://github.com/Valloric/YouCompleteMe/pull/763
2014-01-20 10:29:06 +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
593cf4e123 Merge branch 'master' into gcc_refactor 2013-06-29 13:09:21 +03:00
LCD 47
8751e32710 Bug fix: incomplete registering of cloned checkers.
Scenario:

- a C file is recognized as having filetype cpp
- run :SyntasticInfo
- run :setf c
- run :SyntasticInfo again

The only checker recognized will be oclint.  The reason is, oclint is
registered as a c checker when called from cpp initialization, and that
prevents registering other c checkers when calling ':setf c'.

Solution: always initialize all checkers for a filetype.
2013-06-29 13:03:28 +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
4a6ece567a Merge branch 'master' into gcc_refactor 2013-05-30 19:29:12 +03:00
LCD 47
ec434f50b1 Added checkers for Objective-C++ (mostly cloned from Objective-C). 2013-05-30 18:55:39 +03:00
LCD 47
ea827bfa06 GCC refactor. 2013-05-21 10:03:04 +03:00