[前][次][番号順一覧][スレッド一覧]

ruby-changes:61190

From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Mon, 11 May 2020 09:24:37 +0900 (JST)
Subject: [ruby-changes:61190] 0d88fe3a72 (master): spaces in comments [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=0d88fe3a72

From 0d88fe3a7278e3dab2675c1fe2c0f184d0624da2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?=
 <shyouhei@r...>
Date: Mon, 11 May 2020 08:32:18 +0900
Subject: spaces in comments [ci skip]


diff --git a/include/ruby/impl/attr/noalias.h b/include/ruby/impl/attr/noalias.h
index 8243995..0180d0c 100644
--- a/include/ruby/impl/attr/noalias.h
+++ b/include/ruby/impl/attr/noalias.h
@@ -22,28 +22,28 @@ https://github.com/ruby/ruby/blob/trunk/include/ruby/impl/attr/noalias.h#L22
  *
  * ### Q&A ###
  *
- * - Q: There  are   seemingly  similar  attributes   named  #RBIMPL_ATTR_CONST,
+ * - Q: There  are  seemingly   similar  attributes  named  #RBIMPL_ATTR_CONST,
  *      #RBIMPL_ATTR_PURE, and #RBIMPL_ATTR_NOALIAS.  What are the difference?
  *
  * - A: Allowed operations are different.
  *
- *     - #RBIMPL_ATTR_CONST ... Functions attributed by  this are not allowed to
+ *     - #RBIMPL_ATTR_CONST ... Functions attributed by this are not allowed to
  *       read/write  _any_ pointers  at all  (there are  exceptional situations
  *       when  reading a  pointer is  possible but  forget that;  they are  too
  *       exceptional  to be  useful).  Just  remember that  everything pointer-
  *       related are NG.
  *
- *     - #RBIMPL_ATTR_PURE  ...   Functions  attributed  by this  can  read  any
+ *     - #RBIMPL_ATTR_PURE  ...   Functions attributed  by  this  can read  any
  *       nonvolatile pointers, but  no writes are allowed at  all.  The ability
  *       to read _any_ nonvolatile pointers  makes it possible to mark ::VALUE-
  *       taking functions as being pure, as long as they are read-only.
  *
- *     - #RBIMPL_ATTR_NOALIAS ... Can both read/write, but only through pointers
- *       passed to  the function  as parameters.  This  is a  typical situation
- *       when you create  a C++ non-static member function  which only concerns
- *       `this`.  No  global variables are  allowed to read/write.  So  this is
- *       not a  super-set of being pure.   If you want to  read something, that
- *       has  to be  passed  to the  function as  a  pointer.  ::VALUE  -taking
+ *     - #RBIMPL_ATTR_NOALIAS  ...  Can  both   read/write,  but  only  through
+ *       pointers  passed to  the function  as parameters.   This is  a typical
+ *       situation when you create a  C++ non-static member function which only
+ *       concerns `this`.  No  global variables are allowed  to read/write.  So
+ *       this is not a super-set of being pure.  If you want to read something,
+ *       that has to  be passed to the function as  a pointer.  ::VALUE -taking
  *       functions thus cannot be attributed as such.
  */
 #include "ruby/impl/has/declspec_attribute.h"
diff --git a/include/ruby/impl/attr/restrict.h b/include/ruby/impl/attr/restrict.h
index 313e802..518906f 100644
--- a/include/ruby/impl/attr/restrict.h
+++ b/include/ruby/impl/attr/restrict.h
@@ -25,7 +25,7 @@ https://github.com/ruby/ruby/blob/trunk/include/ruby/impl/attr/restrict.h#L25
 #include "ruby/impl/token_paste.h"
 
 /* :FIXME:  config.h  includes conflicting  `#define  restrict`.   MSVC can  be
- * detected  using  `RBIMPL_COMPILER_SINCE()`, but  Clang  &  family cannot  use
+ * detected  using `RBIMPL_COMPILER_SINCE()`,  but  Clang &  family cannot  use
  * `__has_declspec_attribute()` which involves macro substitution. */
 
 /** Wraps (or simulates) `__declspec(restrict)` */
diff --git a/include/ruby/impl/special_consts.h b/include/ruby/impl/special_consts.h
index 63c9641..5fb3b8e 100644
--- a/include/ruby/impl/special_consts.h
+++ b/include/ruby/impl/special_consts.h
@@ -102,7 +102,7 @@ RBIMPL_ATTR_CONST() https://github.com/ruby/ruby/blob/trunk/include/ruby/impl/special_consts.h#L102
 RBIMPL_ATTR_CONSTEXPR(CXX11)
 RBIMPL_ATTR_ARTIFICIAL()
 /*
- * :NOTE: rbimpl_test HAS  to be `__attribute__((const))` in order  for clang to
+ * :NOTE: rbimpl_test HAS to be  `__attribute__((const))` in order for clang to
  * properly deduce `__builtin_assume()`.
  */
 static inline bool
diff --git a/include/ruby/impl/stdalign.h b/include/ruby/impl/stdalign.h
index 61a47e2..a3dcfb9 100644
--- a/include/ruby/impl/stdalign.h
+++ b/include/ruby/impl/stdalign.h
@@ -75,7 +75,7 @@ https://github.com/ruby/ruby/blob/trunk/include/ruby/impl/stdalign.h#L75
 #endif
 
 /**
- * Wraps (or  simulates) `alignof`.   Unlike #RBIMPL_ALIGNAS,  we can  safely say
+ * Wraps (or simulates)  `alignof`.  Unlike #RBIMPL_ALIGNAS, we  can safely say
  * both C/C++ definitions are effective.
  */
 #if defined(__cplusplus) && RBIMPL_HAS_EXTENSION(cxx_alignof)
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]