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/ex_eval.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/nvim/ex_eval.h') diff --git a/src/nvim/ex_eval.h b/src/nvim/ex_eval.h index d3053ae0d4..bf39341ce4 100644 --- a/src/nvim/ex_eval.h +++ b/src/nvim/ex_eval.h @@ -1,5 +1,4 @@ -#ifndef NVIM_EX_EVAL_H -#define NVIM_EX_EVAL_H +#pragma once #include "nvim/ex_cmds_defs.h" #include "nvim/ex_eval_defs.h" @@ -7,4 +6,3 @@ #ifdef INCLUDE_GENERATED_DECLARATIONS # include "ex_eval.h.generated.h" #endif -#endif // NVIM_EX_EVAL_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/ex_eval.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nvim/ex_eval.h') diff --git a/src/nvim/ex_eval.h b/src/nvim/ex_eval.h index bf39341ce4..0294acd109 100644 --- a/src/nvim/ex_eval.h +++ b/src/nvim/ex_eval.h @@ -1,7 +1,7 @@ #pragma once -#include "nvim/ex_cmds_defs.h" -#include "nvim/ex_eval_defs.h" +#include "nvim/ex_cmds_defs.h" // IWYU pragma: keep +#include "nvim/ex_eval_defs.h" // IWYU pragma: export #ifdef INCLUDE_GENERATED_DECLARATIONS # include "ex_eval.h.generated.h" -- cgit