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/spellsuggest.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/nvim/spellsuggest.h') diff --git a/src/nvim/spellsuggest.h b/src/nvim/spellsuggest.h index 8813a5b3f1..5b7278563c 100644 --- a/src/nvim/spellsuggest.h +++ b/src/nvim/spellsuggest.h @@ -1,9 +1,7 @@ -#ifndef NVIM_SPELLSUGGEST_H -#define NVIM_SPELLSUGGEST_H +#pragma once #include "nvim/garray.h" #ifdef INCLUDE_GENERATED_DECLARATIONS # include "spellsuggest.h.generated.h" #endif -#endif // NVIM_SPELLSUGGEST_H -- cgit From 6361806aa28edca55ad3316a58bc3e936df9c0eb Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sun, 26 Nov 2023 22:58:52 +0800 Subject: refactor: move garray_T to garray_defs.h (#26227) --- src/nvim/spellsuggest.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/spellsuggest.h') diff --git a/src/nvim/spellsuggest.h b/src/nvim/spellsuggest.h index 5b7278563c..a0acc3cc50 100644 --- a/src/nvim/spellsuggest.h +++ b/src/nvim/spellsuggest.h @@ -1,6 +1,6 @@ #pragma once -#include "nvim/garray.h" +#include "nvim/garray_defs.h" #ifdef INCLUDE_GENERATED_DECLARATIONS # include "spellsuggest.h.generated.h" -- cgit From 71141e8cf5dfaf5d17610dba57f0e0f319a4850e Mon Sep 17 00:00:00 2001 From: dundargoc Date: Sun, 26 Nov 2023 17:25:35 +0100 Subject: build(IWYU): fix headers for arabic.h --- src/nvim/spellsuggest.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/spellsuggest.h') diff --git a/src/nvim/spellsuggest.h b/src/nvim/spellsuggest.h index a0acc3cc50..0100e44b07 100644 --- a/src/nvim/spellsuggest.h +++ b/src/nvim/spellsuggest.h @@ -1,6 +1,6 @@ #pragma once -#include "nvim/garray_defs.h" +#include "nvim/garray_defs.h" // IWYU pragma: export #ifdef INCLUDE_GENERATED_DECLARATIONS # include "spellsuggest.h.generated.h" -- cgit From 7e2387f41be7cd8304fe48bfa089f2bea155dd5a Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 27 Nov 2023 08:34:06 +0800 Subject: build(clint): more precise check for "defs" headers (#26236) --- src/nvim/spellsuggest.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/spellsuggest.h') diff --git a/src/nvim/spellsuggest.h b/src/nvim/spellsuggest.h index 0100e44b07..40e51a0f88 100644 --- a/src/nvim/spellsuggest.h +++ b/src/nvim/spellsuggest.h @@ -1,6 +1,6 @@ #pragma once -#include "nvim/garray_defs.h" // IWYU pragma: export +#include "nvim/garray_defs.h" // IWYU pragma: keep #ifdef INCLUDE_GENERATED_DECLARATIONS # include "spellsuggest.h.generated.h" -- cgit