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?= Date: Mon, 11 May 2020 08:32:18 +0900 Subject: spaces in comments [ci skip] --- include/ruby/impl/attr/noalias.h | 18 +++++++++--------- include/ruby/impl/attr/restrict.h | 2 +- include/ruby/impl/special_consts.h | 2 +- include/ruby/impl/stdalign.h | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) (limited to 'include/ruby/impl') diff --git a/include/ruby/impl/attr/noalias.h b/include/ruby/impl/attr/noalias.h index 8243995c1e..0180d0c4ec 100644 --- a/include/ruby/impl/attr/noalias.h +++ b/include/ruby/impl/attr/noalias.h @@ -22,28 +22,28 @@ * * ### 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 313e8020bd..518906f6da 100644 --- a/include/ruby/impl/attr/restrict.h +++ b/include/ruby/impl/attr/restrict.h @@ -25,7 +25,7 @@ #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 63c9641544..5fb3b8eb94 100644 --- a/include/ruby/impl/special_consts.h +++ b/include/ruby/impl/special_consts.h @@ -102,7 +102,7 @@ RBIMPL_ATTR_CONST() 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 61a47e2669..a3dcfb90ef 100644 --- a/include/ruby/impl/stdalign.h +++ b/include/ruby/impl/stdalign.h @@ -75,7 +75,7 @@ #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 v1.2.3