[libc-commits] [libc] [libc] Add inf/nan tests for strfrom*() functions (PR #86663)

via libc-commits libc-commits at lists.llvm.org
Tue Mar 26 07:03:50 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff a51d13f5db08e36e0b734bc2aa9b5c4fea9cf116 be79ebc5aaa5b55f2a3487902e72ef1910334606 -- libc/test/src/stdlib/StrfromTest.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/libc/test/src/stdlib/StrfromTest.h b/libc/test/src/stdlib/StrfromTest.h
index 0b9a48e691..a169fa76aa 100644
--- a/libc/test/src/stdlib/StrfromTest.h
+++ b/libc/test/src/stdlib/StrfromTest.h
@@ -123,9 +123,9 @@ public:
   }
 
   void infNanValues(FunctionT func) {
-    if(is_double_prec)
+    if (is_double_prec)
       doublePrecInfNan(func);
-    else if(!is_single_prec)
+    else if (!is_single_prec)
       longDoublePrecInfNan(func);
   }
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/86663


More information about the libc-commits mailing list