-
Notifications
You must be signed in to change notification settings - Fork 12.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include cmath to fix build error on mac os 10.14 #88665
Conversation
|
@llvm/pr-subscribers-clang-tools-extra @llvm/pr-subscribers-clang-tidy Author: None (Zentrik) ChangesThis should fix #88664. Full diff: https://github.com/llvm/llvm-project/pull/88665.diff 1 Files Affected:
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;
|
|
|
|
✅ With the latest revision this PR passed the C/C++ code formatter. |
This fixes llvm#88664. (cherry picked from commit a5f5417)
This fixes llvm#88664. (cherry picked from commit a5f5417)
This fixes #88664.