[clang-tools-extra] Include cmath to fix build error on mac os 10.14 (PR #88665)

via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 14 09:35:38 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 b8d0cba14bcfc5c1c2f7a878ad9eaa12b6a590b6 cdd250c837b9f1b2c35fa12b170c342f6d1ce295 -- clang-tools-extra/clang-tidy/modernize/UseStdNumbersCheck.cpp
``````````

</details>

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

``````````diff
diff --git a/clang-tools-extra/clang-tidy/modernize/UseStdNumbersCheck.cpp b/clang-tools-extra/clang-tidy/modernize/UseStdNumbersCheck.cpp
index 45a8f97348..1548fc454c 100644
--- a/clang-tools-extra/clang-tidy/modernize/UseStdNumbersCheck.cpp
+++ b/clang-tools-extra/clang-tidy/modernize/UseStdNumbersCheck.cpp
@@ -29,13 +29,13 @@
 #include "llvm/Support/FormatVariadic.h"
 #include "llvm/Support/MathExtras.h"
 #include <array>
+#include <cmath>
 #include <cstdint>
 #include <cstdlib>
 #include <initializer_list>
 #include <string>
 #include <tuple>
 #include <utility>
-#include <cmath>
 
 namespace {
 using namespace clang::ast_matchers;

``````````

</details>


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


More information about the cfe-commits mailing list