[clang] [clang] Extend clang's <limits.h> to define *LONG_LONG*_ macros for bionic (PR #115406)

via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 7 17:10:07 PST 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 1ced07e06e23659a96dbf6d53cd68d3bbbe3d792 eda669f73765a957cc47d3d684a6443ed2f75edf --extensions h -- clang/lib/Headers/limits.h
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Headers/limits.h b/clang/lib/Headers/limits.h
index 9879fe81fa..7117d74ba1 100644
--- a/clang/lib/Headers/limits.h
+++ b/clang/lib/Headers/limits.h
@@ -116,7 +116,9 @@
    that could be used to deprecate a macro - the code should just use LLONG_MAX
    and friends.
  */
-#if (defined(__GNU_LIBRARY__) ? defined(__USE_GNU) : !defined(__STRICT_ANSI__)) || defined(__BIONIC__)
+#if (defined(__GNU_LIBRARY__) ? defined(__USE_GNU)                             \
+                              : !defined(__STRICT_ANSI__)) ||                  \
+    defined(__BIONIC__)
 
 #undef   LONG_LONG_MIN
 #undef   LONG_LONG_MAX

``````````

</details>


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


More information about the cfe-commits mailing list