[clang] [C23] Add *_NORM_MAX macros to <float.h> (PR #96643)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 25 08:14:18 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 2ae09052477e1a966afbc5482d88585f95694c53 486d9fb3f9f992831569e4b9e1eda0a54c777b3b --extensions 'h,cpp,c' -- clang/lib/Frontend/InitPreprocessor.cpp clang/lib/Headers/float.h clang/test/Headers/float.c clang/test/Preprocessor/init-aarch64.c clang/test/Preprocessor/init.c
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp
index afc4c16ab6..d3b264eede 100644
--- a/clang/lib/Frontend/InitPreprocessor.cpp
+++ b/clang/lib/Frontend/InitPreprocessor.cpp
@@ -148,7 +148,7 @@ static void DefineFloatMacros(MacroBuilder &Builder, StringRef Prefix,
DefPrefix += "_";
Builder.defineMacro(DefPrefix + "DENORM_MIN__", Twine(DenormMin)+Ext);
- Builder.defineMacro(DefPrefix + "NORM_MAX__", Twine(NormMax)+Ext);
+ Builder.defineMacro(DefPrefix + "NORM_MAX__", Twine(NormMax) + Ext);
Builder.defineMacro(DefPrefix + "HAS_DENORM__");
Builder.defineMacro(DefPrefix + "DIG__", Twine(Digits));
Builder.defineMacro(DefPrefix + "DECIMAL_DIG__", Twine(DecimalDigits));
``````````
</details>
https://github.com/llvm/llvm-project/pull/96643
More information about the cfe-commits
mailing list