aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* cmake: Also depend on LINT_PRGZyX2017-03-31
|
* clint: Do not report zero errorsZyX2017-03-31
|
* cmake: Replace RunLint.cmake with code in src/nvim/CMakeLists.txtZyX2017-03-31
| | | | | | This also removes LINT_FILE environment variable, other then that functionality is kept. It is expected that developers needing partial linting will use `make lint`, touching interesting file before (if not done already by writing to them).
* cmake: Allow failing to download small suppress filesZyX2017-03-31
|
* cmake: Make Download.cmake check for errorsZyX2017-03-31
| | | Copying from third-party/cmake/DownloadAndExtractFile.cmake.
* cmake: Use file-specific supprressesZyX2017-03-31
| | | | | | | | | | | | | | | | `make -C build clint` time is now make -j5 clint 95.29s user 1.86s system 409% cpu 23.751 total *without* downloading anything (much worse if something was not cached, still a bit better then top-level `make clint`). But since without neovim/bot-ci#95 it is downloading each file one-by-one total time with download (download also parallel!) is make -j5 -B clint 99.29s user 2.98s system 258% cpu 39.634 total Top-level makefile still gives make -j5 clint 59.33s user 0.28s system 95% cpu 1:02.41 total
* cmake: Add `clint` target to build MakefileZyX2017-03-31
| | | | | | | | | | | | | | | | | | | | | Allows linting only modified files and linting multiple files in parallel. In the current state is rather slow because errors.json is a 6 MiB file and needs to be reparsed each time. Results on my system (6-core): # In build dir, actually parallel make -j5 clint 241.24s user 8.39s system 334% cpu 1:14.74 total # In root, one process make -j5 clint 60.69s user 0.37s system 93% cpu 1:05.19 total In both cases download time included. That is not well for travis (though I would keep travis as-is because new variant will fail before checking all files), but already good enough for regular development: total times are nearly identical and this is the *full* build, further `make -C build clint` will check only modified files.
* ci: Do not hide ci directory (#6410)Nikolai Aleksandrovich Pavlov2017-03-31
|
* Merge pull request #6397 from jamessan/coverityJames McCoy2017-03-31
|\ | | | | Fix latest Coverity issues
| * coverity/161216: Ensure buf is valid for lifetime of defstrJames McCoy2017-03-30
| | | | | | | | | | | | | | | | | | | | Depending on the type of argument for input()/inputdialog()'s {text} argument, defstr may point to buf. Therefore it needs to be in scope for the lifetime of defstr. Also, use a different buffer for the handling of the 3rd argument to input()/inputdialog(). Although the buffer defstr points to is used immediately, it avoids potential mishaps if the code changes.
| * coverity/16127: Verify lang is non-NULL before calling strlenJames McCoy2017-03-29
| |
| * ci: Update Coverity model for typval refactoringJames McCoy2017-03-29
| | | | | | | | [ci skip]
| * coverity/161194: Restore check for 'keywordprg' being ":help"James McCoy2017-03-29
| | | | | | | | | | | | | | | | | | | | | | 998d0ffc09d5c7358db62dc88c2e2b87622f60b5 removed the explicit check for ":help", relying instead on whether the user was in a help buffer. However, this breaks escaping the identifier for use in the lookup command. 2f54d6927cc02484b528a5e8b25b64c8d6580ddd tried to fix this by removing "!kp_ex" in "if (cmdchar == 'K' && !kp_ex)", but that causes shell escaping to be used instead of escaping for tag lookup.
| * coverity/161195: Increase scope of exe_nameJames McCoy2017-03-29
| | | | | | | | | | Since exe_name is a stack allocated array, we need it to be in scope for the lifetime that vim_path points to it.
* | Merge pull request #6406 from jamessan/msgpack-c-2.1.x-compatJames McCoy2017-03-31
|\ \ | | | | | | Add handling for MSGPACK_OBJECT_FLOAT{32,64}
| * | third-party: Avoid building msgpack-c examplesJames McCoy2017-03-30
| | |
| * | Add handling for MSGPACK_OBJECT_FLOAT{32,64}James McCoy2017-03-30
| | | | | | | | | | | | | | | | | | msgpack-c previously only had MSGPACK_OBJECT_FLOAT, which was a 64-bit value. Now, 32-bit and 64-bit floats are supported as distinct types, but we'll simply continue to treat everything as 64-bit types.
| * | cmake: Detect whether msgpack-c has MSGPACK_OBJECT_FLOAT{32,64} typesJames McCoy2017-03-30
| | |
| * | third-party: Bump msgpack-c to 2.1.1James McCoy2017-03-30
|/ /
* | fold.c: more edge-cases when updating (#6207)Matthew Malcomson2017-03-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When foldUpdateIEMSRecurse() re-uses an existing fold, it misses the case where the existing fold spans from before startlnum to after firstlnum, the new fold does not span this range, and there is no "forced start" of a fold. We add a case for this in. Ensure that if there was no forced break in folds, we merge folds that now touch each other. Include testing for a tricky foldmethod=expr case that has never been a bug. This case works at the moment because of some effects that are not obvious when reading the code. A test for this could be useful to ensure a regression doesn't happen. vim-patch:8.0.0408
* | vim-patch:7.4.2104 (#6332)Michael Ennen2017-03-31
| | | | | | | | | | | | Problem: Code duplication when unreferencing a function. Solution: De-duplicate. https://github.com/vim/vim/commit/97baee80f0906ee2f651ee1215ec033e84f866ad
* | api: {get,set}_option should {get,set} global value of local options (#6405)Jakob Schnitzer2017-03-30
| | | | | | | | | | - nvim_get_option should return the global default of a local option. - nvim_set_option should set the global default of a local option.
* | test: set 'nomore' by default (#6360)Matthew Malcomson2017-03-30
| | | | | | | | | | | | Escaping from a '-- More --' prompt in tests is awkward as it doesn't take keys from the typebuffer, requiring a call to `feed()` in lua at the correct time. Moreover, it's rarer that a test will want the '-- More --' prompt to be activated than not.
* | Remove PVS-Studio cruftJames McCoy2017-03-30
| | | | | | | | [ci skip]
* | Merge #6395 'test: Use workspace-local temp directory.'Justin M. Keyes2017-03-30
|\ \ | |/ |/|
| * test: Use workspace-local temp directory.Justin M. Keyes2017-03-30
| | | | | | | | Closes #6291
| * win: tempname(): Use $TMPDIR if defined.Justin M. Keyes2017-03-30
|/
* refactor/single-include: buffer.h (#6396)relnod2017-03-30
|
* Merge #5119 from ZyX-I/split-evalJustin M. Keyes2017-03-29
|\
| * functests: Try sleeping a bit moreZyX2017-03-29
| |
| * eval/executor: Fix check-single-includesZyX2017-03-29
| |
| * *: Use const char * in set_one_cmd_contextZyX2017-03-29
| | | | | | Also renames functions added in master and renamed here.
| * eval/typval,api/buffer: Fix review commentsZyX2017-03-29
| |
| * eval/typval: Allow NULL dict as tv_dict_get_callback() argumentZyX2017-03-29
| | | | | | Also removes NULL key input: tv_dict_find() does not allow this.
| * eval: Fix -Werror=unitialized from QBZyX2017-03-29
| |
| * eval: Do not supply S_LEN to strncmpZyX2017-03-29
| | | | | | It may be a macro as well.
| * unittests: Fix linter errorsZyX2017-03-29
| |
| * unittests: Add tv_get_string* testsZyX2017-03-29
| |
| * unittests: Add tv_get number testsZyX2017-03-29
| |
| * unittests: Move tv_dict_add* tests to a proper describe() blockZyX2017-03-29
| |
| * unittests: Add tv_check… testsZyX2017-03-29
| |
| * unittests: Add tv_equal() testsZyX2017-03-29
| |
| * unittests: Test locks sectionZyX2017-03-29
| |
| * unittests: Test tv_copy()ZyX2017-03-29
| |
| * unittests: Add tests for tv_clear()ZyX2017-03-29
| |
| * unittests: Add test for tv_dict_set_keys_readonlyZyX2017-03-29
| |
| * unittests: Add tv_dict_copy testsZyX2017-03-29
| |
| * charset: Remove useless condition from vim_iswordc_tabZyX2017-03-29
| |
| * unittests: Add tests for tv_dict_extendZyX2017-03-29
| |
| * eval: Fix extend() behaviour with NULL lists and dictionariesZyX2017-03-29
| | | | | | | | | | Ref #4615 Ref vim/vim#768