[libc-commits] [libc] 676bca0 - [libc][NFC] Fix typo in header guards
Guillaume Chatelet via libc-commits
libc-commits at lists.llvm.org
Mon Feb 13 07:22:51 PST 2023
Author: Guillaume Chatelet
Date: 2023-02-13T15:22:43Z
New Revision: 676bca0b6f0df943935e3b17cfd1d9e8d9eb4797
URL: https://github.com/llvm/llvm-project/commit/676bca0b6f0df943935e3b17cfd1d9e8d9eb4797
DIFF: https://github.com/llvm/llvm-project/commit/676bca0b6f0df943935e3b17cfd1d9e8d9eb4797.diff
LOG: [libc][NFC] Fix typo in header guards
Added:
Modified:
libc/src/__support/StringUtil/error_to_string.h
libc/src/__support/StringUtil/message_mapper.h
libc/src/__support/StringUtil/signal_to_string.h
Removed:
################################################################################
diff --git a/libc/src/__support/StringUtil/error_to_string.h b/libc/src/__support/StringUtil/error_to_string.h
index 8b07ee2c17ab2..b09c8a2ea88ed 100644
--- a/libc/src/__support/StringUtil/error_to_string.h
+++ b/libc/src/__support/StringUtil/error_to_string.h
@@ -9,8 +9,8 @@
#include "src/__support/CPP/span.h"
#include "src/__support/CPP/string_view.h"
-#ifndef LLVM_LIBC_SRC_SUPPORT_ERROR_TO_STRING
-#define LLVM_LIBC_SRC_SUPPORT_ERROR_TO_STRING
+#ifndef LLVM_LIBC_SRC_SUPPORT_ERROR_TO_STRING_H
+#define LLVM_LIBC_SRC_SUPPORT_ERROR_TO_STRING_H
namespace __llvm_libc {
@@ -20,4 +20,4 @@ cpp::string_view get_error_string(int err_num, cpp::span<char> buffer);
} // namespace __llvm_libc
-#endif // LLVM_LIBC_SRC_SUPPORT_ERROR_TO_STRING
+#endif // LLVM_LIBC_SRC_SUPPORT_ERROR_TO_STRING_H
diff --git a/libc/src/__support/StringUtil/message_mapper.h b/libc/src/__support/StringUtil/message_mapper.h
index 1e0df4f056a7d..98b2cb169476b 100644
--- a/libc/src/__support/StringUtil/message_mapper.h
+++ b/libc/src/__support/StringUtil/message_mapper.h
@@ -6,8 +6,8 @@
//
//===----------------------------------------------------------------------===//
-#ifndef LLVM_LIBC_SRC_SUPPORT_STRING_UTIL_MESSAGE_MAPPER
-#define LLVM_LIBC_SRC_SUPPORT_STRING_UTIL_MESSAGE_MAPPER
+#ifndef LLVM_LIBC_SRC_SUPPORT_STRING_UTIL_MESSAGE_MAPPER_H
+#define LLVM_LIBC_SRC_SUPPORT_STRING_UTIL_MESSAGE_MAPPER_H
#include "src/__support/CPP/optional.h"
#include "src/__support/CPP/string_view.h"
@@ -74,4 +74,4 @@ template <size_t ARR_SIZE, size_t TOTAL_STR_LEN> class MessageMapper {
} // namespace internal
} // namespace __llvm_libc
-#endif // LLVM_LIBC_SRC_SUPPORT_STRING_UTIL_MESSAGE_MAPPER
+#endif // LLVM_LIBC_SRC_SUPPORT_STRING_UTIL_MESSAGE_MAPPER_H
diff --git a/libc/src/__support/StringUtil/signal_to_string.h b/libc/src/__support/StringUtil/signal_to_string.h
index ad04f36977504..694015336b41c 100644
--- a/libc/src/__support/StringUtil/signal_to_string.h
+++ b/libc/src/__support/StringUtil/signal_to_string.h
@@ -9,8 +9,8 @@
#include "src/__support/CPP/span.h"
#include "src/__support/CPP/string_view.h"
-#ifndef LLVM_LIBC_SRC_SUPPORT_SIGNAL_TO_STRING
-#define LLVM_LIBC_SRC_SUPPORT_SIGNAL_TO_STRING
+#ifndef LLVM_LIBC_SRC_SUPPORT_SIGNAL_TO_STRING_H
+#define LLVM_LIBC_SRC_SUPPORT_SIGNAL_TO_STRING_H
namespace __llvm_libc {
@@ -20,4 +20,4 @@ cpp::string_view get_signal_string(int err_num, cpp::span<char> buffer);
} // namespace __llvm_libc
-#endif // LLVM_LIBC_SRC_SUPPORT_SIGNAL_TO_STRING
+#endif // LLVM_LIBC_SRC_SUPPORT_SIGNAL_TO_STRING_H
More information about the libc-commits
mailing list