[Openmp-commits] [openmp] Replace some C headers with C++ ones (PR #82697)

Daniel Martinez via Openmp-commits openmp-commits at lists.llvm.org
Thu Feb 22 14:11:19 PST 2024


https://github.com/Calandracas606 created https://github.com/llvm/llvm-project/pull/82697

#81434

Replaced some C headers with C++ ones

>From 6bdc48b935bb0ee4ae7e70f4523993016c2794a2 Mon Sep 17 00:00:00 2001
From: Daniel Martinez <danielmartinez at cock.li>
Date: Thu, 22 Feb 2024 17:03:35 -0500
Subject: [PATCH] Replace some C headers with C++ ones

---
 openmp/libomptarget/include/Shared/SourceInfo.h          | 2 +-
 openmp/libomptarget/include/omptarget.h                  | 3 +--
 openmp/libomptarget/plugins-nextgen/common/include/RPC.h | 2 +-
 3 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/openmp/libomptarget/include/Shared/SourceInfo.h b/openmp/libomptarget/include/Shared/SourceInfo.h
index 711f06a04d017f..63488ff0e8cac2 100644
--- a/openmp/libomptarget/include/Shared/SourceInfo.h
+++ b/openmp/libomptarget/include/Shared/SourceInfo.h
@@ -13,7 +13,7 @@
 #ifndef OMPTARGET_SHARED_SOURCE_INFO_H
 #define OMPTARGET_SHARED_SOURCE_INFO_H
 
-#include <stdint.h>
+#include <cstdint>
 #include <string>
 
 #ifdef _WIN32
diff --git a/openmp/libomptarget/include/omptarget.h b/openmp/libomptarget/include/omptarget.h
index 9a2bd1340e3b4d..8e0ccf191839da 100644
--- a/openmp/libomptarget/include/omptarget.h
+++ b/openmp/libomptarget/include/omptarget.h
@@ -20,11 +20,10 @@
 
 #include "OpenMP/InternalTypes.h"
 
+#include <cstddef>
 #include <cstdint>
 #include <deque>
 #include <functional>
-#include <stddef.h>
-#include <stdint.h>
 #include <type_traits>
 
 #include "llvm/ADT/SmallVector.h"
diff --git a/openmp/libomptarget/plugins-nextgen/common/include/RPC.h b/openmp/libomptarget/plugins-nextgen/common/include/RPC.h
index e1ebcb20e26449..2e39b3f299c888 100644
--- a/openmp/libomptarget/plugins-nextgen/common/include/RPC.h
+++ b/openmp/libomptarget/plugins-nextgen/common/include/RPC.h
@@ -18,7 +18,7 @@
 
 #include "llvm/Support/Error.h"
 
-#include <stdint.h>
+#include <cstdint>
 
 namespace llvm::omp::target {
 namespace plugin {



More information about the Openmp-commits mailing list