[flang] [compiler-rt] [libc] [libcxx] [clang-tools-extra] [llvm] [clang] [libcxx] Unifying __is_trivial_equality_predicate and __is_trivial_plus_operation into __desugars_to (PR #68642)

via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 6 12:19:29 PST 2023


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 b14d3441a67939533df1b10cc456516c85a3386a 57c4db247df3e02f83b287015de2a6154b6b5749 -- libcxx/test/libcxx/algorithms/pstl.transform_reduce.string.pass.cpp libcxx/include/__algorithm/comp.h libcxx/include/__algorithm/pstl_backends/cpu_backends/transform_reduce.h libcxx/include/__numeric/pstl_transform_reduce.h libcxx/include/__type_traits/operation_traits.h
``````````

</details>

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

``````````diff
diff --git a/libcxx/test/libcxx/algorithms/pstl.transform_reduce.string.pass.cpp b/libcxx/test/libcxx/algorithms/pstl.transform_reduce.string.pass.cpp
index 10c2db3c7d3e..c56e57bacefd 100644
--- a/libcxx/test/libcxx/algorithms/pstl.transform_reduce.string.pass.cpp
+++ b/libcxx/test/libcxx/algorithms/pstl.transform_reduce.string.pass.cpp
@@ -36,10 +36,10 @@ int main(int, char**) {
     char a;
     for (int j = 0; j < 5; j++) {
       // Generating random unsigned int with a linear congruential generator
-      seed = (214013*seed + 11) % 4294967295;
-      
+      seed = (214013 * seed + 11) % 4294967295;
+
       // Generating ASCII character from 33 (!) to 126 (~)
-      a = ((unsigned int) 33 + (seed % 93));
+      a = ((unsigned int)33 + (seed % 93));
       str += a;
     }
     vec[i] = str;

``````````

</details>


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


More information about the cfe-commits mailing list