[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:33:22 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang-tidy
Author: None (Zentrik)
<details>
<summary>Changes</summary>
This should fix #<!-- -->88664.
---
Full diff: https://github.com/llvm/llvm-project/pull/88665.diff
1 Files Affected:
- (modified) clang-tools-extra/clang-tidy/modernize/UseStdNumbersCheck.cpp (+1)
``````````diff
diff --git a/clang-tools-extra/clang-tidy/modernize/UseStdNumbersCheck.cpp b/clang-tools-extra/clang-tidy/modernize/UseStdNumbersCheck.cpp
index b299afd540b9a3..45a8f973486147 100644
--- a/clang-tools-extra/clang-tidy/modernize/UseStdNumbersCheck.cpp
+++ b/clang-tools-extra/clang-tidy/modernize/UseStdNumbersCheck.cpp
@@ -35,6 +35,7 @@
#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