diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2022-06-09 17:09:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-09 08:09:24 -0700 |
commit | 6d57bb89c1ee376b60198f4a4b75430905844138 (patch) | |
tree | 5e9b522be1202cedd601e01a983cc7893b581bf4 /src | |
parent | 9662cd7f48c5dc3b7ab5f5ca3e5b217a03faa6c9 (diff) | |
download | rneovim-6d57bb89c1ee376b60198f4a4b75430905844138.tar.gz rneovim-6d57bb89c1ee376b60198f4a4b75430905844138.tar.bz2 rneovim-6d57bb89c1ee376b60198f4a4b75430905844138.zip |
build: add a cmake target for all used linters #18543
* build: move the logic for linters to cmake
Cmake is our source of truth. We should have as much of our build
process there as possible so everyone can make use of it.
* build: remove redundant check for ninja generator
The minimum cmake version as of writing this is 3.10, which has ninja
support.
Diffstat (limited to 'src')
-rwxr-xr-x | src/nvim/CMakeLists.txt | 4 | ||||
-rw-r--r-- | src/nvim/diff.c | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt index da74b4dc9d..c902ff6c50 100755 --- a/src/nvim/CMakeLists.txt +++ b/src/nvim/CMakeLists.txt @@ -800,10 +800,10 @@ foreach(sfile ${LINT_NVIM_SOURCES}) list(APPEND LINT_TARGETS ${touch_file}) list(APPEND LINT_NVIM_REL_SOURCES ${rsfile}) endforeach() -add_custom_target(clint DEPENDS ${LINT_TARGETS}) +add_custom_target(lintc DEPENDS ${LINT_TARGETS}) add_custom_target( - clint-full + lintcfull COMMAND ${LINT_PRG} --suppress-errors=${LINT_SUPPRESS_FILE} ${LINT_NVIM_REL_SOURCES} WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} diff --git a/src/nvim/diff.c b/src/nvim/diff.c index 8c98c1ef23..1625632842 100644 --- a/src/nvim/diff.c +++ b/src/nvim/diff.c @@ -2307,6 +2307,7 @@ bool diff_find_change(win_T *wp, linenr_T lnum, int *startp, int *endp) if ((dp == NULL) || (diff_check_sanity(curtab, dp) == FAIL)) { xfree(line_org); + return false; } |