[libcxx-commits] [libcxx] 25a3463 - [libc++][NFC] Fixes placement of the return type.

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Thu Oct 14 08:41:30 PDT 2021


Author: Mark de Wever
Date: 2021-10-14T17:40:45+02:00
New Revision: 25a3463c44ee4fccad19b6d8b30899f3d7bd5279

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

LOG: [libc++][NFC] Fixes placement of the return type.

Added: 
    

Modified: 
    libcxx/include/__format/parser_std_format_spec.h

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__format/parser_std_format_spec.h b/libcxx/include/__format/parser_std_format_spec.h
index 77ee380936c6e..9b713b8114846 100644
--- a/libcxx/include/__format/parser_std_format_spec.h
+++ b/libcxx/include/__format/parser_std_format_spec.h
@@ -303,7 +303,7 @@ class _LIBCPP_TYPE_VIS __parser_width {
     return __r.__ptr;
   }
 
-  void _LIBCPP_HIDE_FROM_ABI constexpr __substitute_width_arg_id(auto __arg) {
+  _LIBCPP_HIDE_FROM_ABI constexpr void __substitute_width_arg_id(auto __arg) {
     _LIBCPP_ASSERT(__width_as_arg == 1,
                    "Substitute width called when no substitution is required");
 
@@ -395,7 +395,7 @@ class _LIBCPP_TYPE_VIS __parser_precision {
     return __r.__ptr;
   }
 
-  void _LIBCPP_HIDE_FROM_ABI constexpr __substitute_precision_arg_id(
+  _LIBCPP_HIDE_FROM_ABI constexpr void __substitute_precision_arg_id(
       auto __arg) {
     _LIBCPP_ASSERT(
         __precision_as_arg == 1 && __precision != __format::__number_max,
@@ -576,7 +576,7 @@ class _LIBCPP_TEMPLATE_VIS __parser_string
   }
 
   /** Processes the parsed std-format-spec based on the parsed display type. */
-  void _LIBCPP_HIDE_FROM_ABI constexpr __process_display_type() {
+  _LIBCPP_HIDE_FROM_ABI constexpr void __process_display_type() {
     switch (this->__type) {
     case _Flags::_Type::__default:
     case _Flags::_Type::__string:


        


More information about the libcxx-commits mailing list