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/os/time.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/nvim/os/time.h') diff --git a/src/nvim/os/time.h b/src/nvim/os/time.h index 1b6c667dbb..8f8b5511bd 100644 --- a/src/nvim/os/time.h +++ b/src/nvim/os/time.h @@ -1,5 +1,4 @@ -#ifndef NVIM_OS_TIME_H -#define NVIM_OS_TIME_H +#pragma once #include #include @@ -10,4 +9,3 @@ typedef uint64_t Timestamp; #ifdef INCLUDE_GENERATED_DECLARATIONS # include "os/time.h.generated.h" #endif -#endif // NVIM_OS_TIME_H -- cgit From 574d25642fc9ca65b396633aeab6e2d32778b642 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 27 Nov 2023 17:21:58 +0800 Subject: refactor: move Arena and ArenaMem to memory_defs.h (#26240) --- src/nvim/os/time.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nvim/os/time.h') diff --git a/src/nvim/os/time.h b/src/nvim/os/time.h index 8f8b5511bd..fa9989c757 100644 --- a/src/nvim/os/time.h +++ b/src/nvim/os/time.h @@ -1,8 +1,8 @@ #pragma once -#include +#include // IWYU pragma: keep #include -#include +#include // IWYU pragma: keep typedef uint64_t Timestamp; -- 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/os/time.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/nvim/os/time.h') diff --git a/src/nvim/os/time.h b/src/nvim/os/time.h index fa9989c757..2748ba6953 100644 --- a/src/nvim/os/time.h +++ b/src/nvim/os/time.h @@ -1,10 +1,9 @@ #pragma once #include // IWYU pragma: keep -#include #include // IWYU pragma: keep -typedef uint64_t Timestamp; +#include "nvim/os/time_defs.h" // IWYU pragma: export #ifdef INCLUDE_GENERATED_DECLARATIONS # include "os/time.h.generated.h" -- cgit