[clang] Implementation of '#pragma STDC FENV_ROUND' (PR #89617)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 22 09:01:21 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 37b7207651b44743909a427b5509bed5e6c21b59 58adf3643828272d071fd49195cfcf0b2164eb70 -- clang/test/CodeGen/pragma-fenv_round.c clang/include/clang/AST/Stmt.h clang/include/clang/Basic/LangOptions.h clang/lib/CodeGen/CGStmt.cpp clang/lib/CodeGen/CodeGenFunction.h clang/lib/Parse/ParsePragma.cpp clang/test/CodeGen/complex-strictfp.c clang/test/CodeGen/math-errno.c clang/test/CodeGen/pragma-fenv_access.c clang/test/Parser/pragma-fenv_round.c
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/include/clang/Basic/LangOptions.h b/clang/include/clang/Basic/LangOptions.h
index 2ec642e25d..ae8c7b2ead 100644
--- a/clang/include/clang/Basic/LangOptions.h
+++ b/clang/include/clang/Basic/LangOptions.h
@@ -837,7 +837,7 @@ public:
/// Checks if the rounding mode is unknown at compile-time.
bool isRoundingModeDynamic() const {
return (getConstRoundingMode() == RoundingMode::Dynamic) &&
- (getAllowFEnvAccess() || getRoundingMath());
+ (getAllowFEnvAccess() || getRoundingMath());
}
RoundingMode getRoundingMode() const {
``````````
</details>
https://github.com/llvm/llvm-project/pull/89617
More information about the cfe-commits
mailing list