aboutsummaryrefslogtreecommitdiff
path: root/cmake/RunUncrustify.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/RunUncrustify.cmake')
-rw-r--r--cmake/RunUncrustify.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/RunUncrustify.cmake b/cmake/RunUncrustify.cmake
new file mode 100644
index 0000000000..9ebbd6b77c
--- /dev/null
+++ b/cmake/RunUncrustify.cmake
@@ -0,0 +1,5 @@
+# HACK: This script is invoked with "cmake -P …" as a workaround to silence uncrustify.
+
+execute_process(
+ COMMAND ${UNCRUSTIFY_PRG} -c "${PROJECT_SOURCE_DIR}/src/uncrustify.cfg" -q --check ${LINT_NVIM_SOURCES}
+ OUTPUT_QUIET)