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

via Openmp-commits openmp-commits at lists.llvm.org
Sun Mar 3 22:21:35 PST 2024


Author: Daniel Martinez
Date: 2024-03-04T01:21:31-05:00
New Revision: aa6ebf9be124664945f32f2be1167e6453788f40

URL: https://github.com/llvm/llvm-project/commit/aa6ebf9be124664945f32f2be1167e6453788f40
DIFF: https://github.com/llvm/llvm-project/commit/aa6ebf9be124664945f32f2be1167e6453788f40.diff

LOG: Replace some C headers with C++ ones (#82697)

#81434

Replaced some C headers with C++ ones

Co-authored-by: Daniel Martinez <danielmartinez at cock.li>

Added: 
    

Modified: 
    openmp/libomptarget/include/Shared/SourceInfo.h
    openmp/libomptarget/include/omptarget.h
    openmp/libomptarget/plugins-nextgen/common/include/RPC.h

Removed: 
    


################################################################################
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