From 09a17f91d0d362c6e58bfdbe3ccdeacffb0b44b9 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 2 Oct 2023 10:45:33 +0800 Subject: refactor: move cmdline completion types to cmdexpand_defs.h (#25465) --- src/nvim/syntax.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nvim/syntax.h') diff --git a/src/nvim/syntax.h b/src/nvim/syntax.h index 0a63392a04..c56624bc37 100644 --- a/src/nvim/syntax.h +++ b/src/nvim/syntax.h @@ -4,6 +4,7 @@ #include #include "nvim/buffer_defs.h" +#include "nvim/cmdexpand_defs.h" #include "nvim/ex_cmds_defs.h" #include "nvim/globals.h" #include "nvim/macros.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/syntax.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/nvim/syntax.h') diff --git a/src/nvim/syntax.h b/src/nvim/syntax.h index c56624bc37..4fcfaac074 100644 --- a/src/nvim/syntax.h +++ b/src/nvim/syntax.h @@ -1,5 +1,4 @@ -#ifndef NVIM_SYNTAX_H -#define NVIM_SYNTAX_H +#pragma once #include @@ -37,5 +36,3 @@ extern const char *const highlight_init_cmdline[]; #ifdef INCLUDE_GENERATED_DECLARATIONS # include "syntax.h.generated.h" #endif - -#endif // NVIM_SYNTAX_H -- cgit From 09541d514dd18bf86f673d3784d406236fcbdad8 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 27 Nov 2023 09:51:26 +0800 Subject: build(IWYU): replace public-to-public mappings with pragmas (#26237) --- src/nvim/syntax.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/nvim/syntax.h') diff --git a/src/nvim/syntax.h b/src/nvim/syntax.h index 4fcfaac074..9ead4aa89a 100644 --- a/src/nvim/syntax.h +++ b/src/nvim/syntax.h @@ -2,11 +2,12 @@ #include -#include "nvim/buffer_defs.h" -#include "nvim/cmdexpand_defs.h" -#include "nvim/ex_cmds_defs.h" +#include "nvim/buffer_defs.h" // IWYU pragma: keep +#include "nvim/cmdexpand_defs.h" // IWYU pragma: keep +#include "nvim/ex_cmds_defs.h" // IWYU pragma: keep #include "nvim/globals.h" #include "nvim/macros.h" +#include "nvim/syntax_defs.h" // IWYU pragma: export #define HL_CONTAINED 0x01 // not used on toplevel #define HL_TRANSP 0x02 // has no highlighting -- 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/syntax.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/syntax.h') diff --git a/src/nvim/syntax.h b/src/nvim/syntax.h index 9ead4aa89a..4e9c7a27dc 100644 --- a/src/nvim/syntax.h +++ b/src/nvim/syntax.h @@ -6,7 +6,7 @@ #include "nvim/cmdexpand_defs.h" // IWYU pragma: keep #include "nvim/ex_cmds_defs.h" // IWYU pragma: keep #include "nvim/globals.h" -#include "nvim/macros.h" +#include "nvim/macros_defs.h" #include "nvim/syntax_defs.h" // IWYU pragma: export #define HL_CONTAINED 0x01 // not used on toplevel -- cgit