[libc-commits] [PATCH] D75205: [libc] Fix typo of namespace in round implementation.

Paula Toth via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed Feb 26 12:08:48 PST 2020


PaulkaToast created this revision.
PaulkaToast added a reviewer: sivachandra.
PaulkaToast added a project: libc-project.
Herald added subscribers: libc-commits, tschuett, MaskRay.

Fixed typos namespace declarations and comments in the files under `src/math/round`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D75205

Files:
  libc/src/math/round/round.cpp
  libc/src/math/round/round.h
  libc/src/math/round/round_redirector.cpp


Index: libc/src/math/round/round_redirector.cpp
===================================================================
--- libc/src/math/round/round_redirector.cpp
+++ libc/src/math/round/round_redirector.cpp
@@ -8,10 +8,10 @@
 
 #include <math.h>
 
-namespace llvm_libc {
+namespace __llvm_libc {
 
 double __round_redirector(double x) {
   return ::round(x);
 }
 
-} // namespace llvm_libc
+} // namespace __llvm_libc
Index: libc/src/math/round/round.h
===================================================================
--- libc/src/math/round/round.h
+++ libc/src/math/round/round.h
@@ -9,10 +9,10 @@
 #ifndef LLVM_LIBC_SRC_MATH_ROUND_H
 #define LLVM_LIBC_SRC_MATH_ROUND_H
 
-namespace llvm_libc {
+namespace __llvm_libc {
 
 double round(double x);
 
-} // namespace llvm_libc
+} // namespace __llvm_libc
 
 #endif // LLVM_LIBC_SRC_MATH_ROUND_H
Index: libc/src/math/round/round.cpp
===================================================================
--- libc/src/math/round/round.cpp
+++ libc/src/math/round/round.cpp
@@ -10,7 +10,7 @@
 
 #include "src/__support/common.h"
 
-namespace llvm_libc {
+namespace __llvm_libc {
 
 double __round_redirector(double x);
 
@@ -18,4 +18,4 @@
   return __round_redirector(x);
 }
 
-} // namespace llvm_libc
+} // namespace __llvm_libc


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75205.246807.patch
Type: text/x-patch
Size: 1277 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20200226/6f77fb75/attachment.bin>


More information about the libc-commits mailing list