Commit Graph

63 Commits

Author SHA1 Message Date
LCD 47
a4a6dd6fcf Merge branch 'master' into gcc_refactor 2013-07-10 10:31:41 +03:00
LCD 47
a1e1108c8e Fix a bug related to shell escaping. 2013-07-10 10:30:41 +03:00
LCD 47
fd01b9091d Merge branch 'master' into gcc_refactor 2013-07-06 09:23:46 +03:00
Thomas Holmes
2d537305f6 Refactor FindInParent from haxe.vim to be a util function 2013-07-05 17:12:06 -04:00
LCD 47
fa961edac6 Merge branch 'master' into gcc_refactor 2013-07-04 21:30:52 +03:00
LCD 47
6ba8e651cb Make shell escaping less produce fewer useless quotes.
Function inspired by tpope's vim-dispatch.
2013-07-04 21:04:20 +03:00
LCD 47
f641f68683 More refactoring: add s:GetCflags(). 2013-06-28 20:25:17 +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
f9c30c3215 Use default includes only with the C-like checkers. 2013-06-21 11:42:14 +03:00
LCD 47
ff2b615093 Merge branch 'master' into gcc_refactor 2013-06-17 14:02:44 +03:00
LCD 47
af9d6f627b Print a message if no active checkers are found. 2013-06-15 07:36:20 +03:00
LCD 47
4284fbf522 Merge branch 'master' into gcc_refactor 2013-06-10 23:25:21 +03:00
LCD 47
6574872b55 Preserve order in checker lists. Fixes #684.
Keep order from g:syntastic_[filetype]_checkers and s:defaultCheckers in
getActiveCheckers().  Keep order in syntastic#util#unique().
2013-06-10 23:14:59 +03:00
LCD 47
c5aa22f4e4 Remove leading and trailing spaces when reading C config files. 2013-06-08 11:33:18 +03:00
LCD 47
45f9e93b00 Bug fix: proper escaping in config files. 2013-06-08 11:09:39 +03:00
LCD 47
b6f6abba86 Merge branch master. 2013-06-07 21:18:29 +03:00
LCD 47
d3d4ff3935 Merge branch 'master' into gcc_refactor 2013-06-06 11:10:10 +03:00
LCD 47
31bed2d6cf Update description of syntastic#makeprg#build(). 2013-06-02 18:28:42 +03:00
LCD 47
63eceb6969 Merge branch 'master' into gcc_refactor 2013-05-31 21:15:55 +03:00
LCD 47
d3354f175c Make syntastic#makeprg#build() aware of filetypes. Fixes #667. 2013-05-31 21:05:45 +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
dd6e1c703b Relax parsing of version strings. 2013-05-29 09:55:42 +03:00
LCD 47
ea827bfa06 GCC refactor. 2013-05-21 10:03:04 +03:00
LCD 47
d8386c1211 Make compressWhitespace() handle embedded LFs. 2013-05-15 09:42:00 +03:00
LCD 47
68cfe6513b Cleanup. 2013-05-13 16:37:16 +03:00
LCD 47
cd289e45f0 Minor cleanup. 2013-05-13 10:59:13 +03:00
LCD 47
4ffa051137 Bug fix. 2013-05-10 16:44:47 +03:00
LCD 47
7319cb6a9e Postprocessing functions.
This patch adds an option 'postprocess' to SyntasticMake().  The value
of this option is a list of names.  Each name is translated to a
function syntastic#postprocess#name().  These functions are applied in
order to the list of errors just before SyntasticMake() returns.  They
take a single parameter, the list of errors, and are supposed to
returned the processed list.
2013-05-10 14:11:07 +03:00
LCD 47
901f19797c Remove a duplicate function. 2013-05-06 08:27:01 +03:00
LCD 47
408287de6f Cleanup.
Adds an option g:syntastic_xhtml_tidy_ignore_errors to xhtml/tidy.
Cosmetic code changes.
2013-04-15 11:21:52 +03:00
Martin Grenfell
49b6012f98 add basic deprecation warning system 2013-04-13 17:19:24 +01:00
Martin Grenfell
a9938e0afd Merge remote-tracking branch 'origin/notifiers'
Conflicts:
	autoload/syntastic/util.vim
2013-04-13 17:05:18 +01:00
Martin Grenfell
fbbb30295b add a simple debug message system
We may want to add debug messages at many points. We can add them as we
find we need them - i.e. when debugging stuff with users.
2013-04-13 16:51:23 +01:00
LCD 47
31b654301b Fix for #597.
If the first error in the location list refers to a file that isn't
loaded, entering the quickfix window would close it.

If `hidden` is set, `:quit`-ing the main file would not close the
quickfix window.
2013-04-09 18:20:14 +03:00
Martin Grenfell
dc3d80a204 more refactors to the Notifier classes
Move the autoloc list toggling out into its own notifier class.

Move the function that echos the error on the current line out into its
own notifier.

A few other changes were required in the process:
* move s:WideMsg() out into syntastic#util autoload lib so it is
  available from the cursor notifier.
* move s:ShowLocList() into the LocList class so it is available for
  the autoloclist notifier
* move s:HideLocList() into Loclist as a class method mainly to keep the
  two show/hide methods together
* move the s:old_line var into the Cursor notifier where it is needed
2013-04-07 23:06:02 +01:00
Christian Höltje
2f4fc38053 Renamed version check function
Moved the `SyntasticIsVersionAtLeast()` into `util.vim` as
`syntastic#util#versionIsAtLeast()` as per @scrooloose's suggestion.
2013-03-08 11:58:49 -05:00
Martin Grenfell
a66c19f731 move the MakeprgBuilder class in with the rest of the classes 2013-02-01 17:06:32 +00:00
Mathias Stearn
9b1326c216 Force case-sensitive matching in syntastic#c#ReadConfig
This makes it not match lines like:
-include some_header.h
2013-01-22 15:11:23 -05:00
Martin Grenfell
5b31495af2 update makeprg builder and update some checkers to use it
update makeprg builder:
* it now accepts `fname`, `tail`, and `post_args` params.
* add some doc above syntastic#makeprg#build
* update a bunch of checkers to use the new params

Still have quite a few checkers that arent using makeprg#build.
Including all c* and a few other c-like checkers. And PHP.

Not to worried about c* as these checkers are complicated and probably
justify having their own logic to build makeprgs.
2013-01-20 12:27:19 +00:00
Martin Grenfell
10c845d1f5 add a makeprg builder
The problem
---

Some people want to change the syntax checker args and/or executable.
Currently they have to create their own checker to do this.

Solution
---

Create a standard API for building a makeprg that allows users to set
global variables to override the exe or args.

This API is in use in the coffee and python/flake8 checkers - as
proofs of concept.

So, if the user wanted to change the args that get passed to `flake8`
they can now set `let g:syntastic_python_flake8_args="--foo --bar"` in
their vimrc. Similarly they could set `let
g:syntastic_python_flake8_exe='python foo.py'`
2013-01-02 13:05:27 +00:00
Martin Grenfell
7353b32d77 perl: add -Tc to makeprg if the shebang contains -T
If the shebang contains -T, then the makeprg looks like:
    perl '/path/to/efm_perl.pl' -c -w '/tmp/foo.pl' -Tc

Mods to syntastic#util#ParseMagicNumber
 * rename it to ParseShebang (since this name seems more common)
 * return an empty result set rather than 0 so callers dont have to
   check if empty()
2012-12-18 09:38:33 +00:00
Gregor Uhlenheuer
8540748d0c Merge pull request #425 from Fruneau/c-cpp-improvements
C/C++ improvements: clang support and default include exclusion
2012-12-16 12:53:42 -08:00
Martin Grenfell
3deec1d81a add syntastic#util#ParseMagicNumber()
this will (hopefully) be used in the perl checker to fix #422
2012-12-16 20:48:54 +00: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
Martin Grenfell
0765f97dd3 refactor out some duplication of /dev/null logic 2012-10-23 22:37:11 +01:00
kongo2002
42279e29f2 add output redirection to null device for C as well 2012-10-09 23:10:35 +02:00
Hong Xu
30d7462249 Remove some unnecessary win64 checks.
has('win32') is always true on Win64.
2012-05-08 20:31:20 +08:00
kongo2002
d8f3aa5d50 add ReadConfig() function for C/C++ checkers 2012-03-27 22:15:06 +02:00