From 5f03a1eaabfc8de2b3a9c666fcd604763f41e152 Mon Sep 17 00:00:00 2001 From: dundargoc Date: Fri, 20 Oct 2023 15:10:33 +0200 Subject: build(lint): remove unnecessary clint.py rules Uncrustify is the source of truth where possible. Remove any redundant checks from clint.py. --- src/nvim/diff.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/nvim/diff.h') diff --git a/src/nvim/diff.h b/src/nvim/diff.h index 1f64465336..eda0fac5cb 100644 --- a/src/nvim/diff.h +++ b/src/nvim/diff.h @@ -8,11 +8,11 @@ #include "nvim/pos.h" // Value set from 'diffopt'. -EXTERN int diff_context INIT(= 6); // context for folds -EXTERN int diff_foldcolumn INIT(= 2); // 'foldcolumn' for diff mode -EXTERN bool diff_need_scrollbind INIT(= false); +EXTERN int diff_context INIT( = 6); // context for folds +EXTERN int diff_foldcolumn INIT( = 2); // 'foldcolumn' for diff mode +EXTERN bool diff_need_scrollbind INIT( = false); -EXTERN bool need_diff_redraw INIT(= false); // need to call diff_redraw() +EXTERN bool need_diff_redraw INIT( = false); // need to call diff_redraw() #ifdef INCLUDE_GENERATED_DECLARATIONS # include "diff.h.generated.h" -- cgit From 4f8941c1a5f1ef6caa410feeb52e343db22763ce Mon Sep 17 00:00:00 2001 From: dundargoc Date: Fri, 10 Nov 2023 12:23:42 +0100 Subject: refactor: replace manual header guards with #pragma once It is less error-prone than manually defining header guards. Pretty much all compilers support it even if it's not part of the C standard. --- src/nvim/diff.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/nvim/diff.h') diff --git a/src/nvim/diff.h b/src/nvim/diff.h index eda0fac5cb..a9c80333ec 100644 --- a/src/nvim/diff.h +++ b/src/nvim/diff.h @@ -1,5 +1,4 @@ -#ifndef NVIM_DIFF_H -#define NVIM_DIFF_H +#pragma once #include @@ -17,4 +16,3 @@ EXTERN bool need_diff_redraw INIT( = false); // need to call diff_redraw() #ifdef INCLUDE_GENERATED_DECLARATIONS # include "diff.h.generated.h" #endif -#endif // NVIM_DIFF_H -- cgit From f4aedbae4cb1f206f5b7c6142697b71dd473059b Mon Sep 17 00:00:00 2001 From: dundargoc Date: Mon, 27 Nov 2023 18:39:38 +0100 Subject: build(IWYU): fix includes for undo_defs.h --- src/nvim/diff.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/diff.h') diff --git a/src/nvim/diff.h b/src/nvim/diff.h index a9c80333ec..944523430b 100644 --- a/src/nvim/diff.h +++ b/src/nvim/diff.h @@ -4,7 +4,7 @@ #include "nvim/ex_cmds_defs.h" #include "nvim/macros.h" -#include "nvim/pos.h" +#include "nvim/pos_defs.h" // Value set from 'diffopt'. EXTERN int diff_context INIT( = 6); // context for folds -- cgit From 79b6ff28ad1204fbb4199b9092f5c578d88cb28e Mon Sep 17 00:00:00 2001 From: dundargoc Date: Tue, 28 Nov 2023 20:31:00 +0100 Subject: refactor: fix headers with IWYU --- src/nvim/diff.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/diff.h') diff --git a/src/nvim/diff.h b/src/nvim/diff.h index 944523430b..8b58887890 100644 --- a/src/nvim/diff.h +++ b/src/nvim/diff.h @@ -3,7 +3,7 @@ #include #include "nvim/ex_cmds_defs.h" -#include "nvim/macros.h" +#include "nvim/macros_defs.h" #include "nvim/pos_defs.h" // Value set from 'diffopt'. -- cgit