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 origin/main HEAD --extensions cpp,h,c -- 
clang/test/PCH/builtins-fenv.c clang/test/PCH/builtins-fenv.h 
clang/test/Sema/builtin-fenv.c clang/test/Sema/fenv-access-implicit.c 
clang/test/Sema/fenv-access-unevaluated.cpp clang/test/Sema/fenv-access.c 
clang/include/clang/AST/ASTContext.h clang/include/clang/Sema/Sema.h 
clang/include/clang/Serialization/ASTBitCodes.h clang/lib/AST/ASTContext.cpp 
clang/lib/Sema/SemaChecking.cpp clang/lib/Sema/SemaDecl.cpp 
clang/lib/Serialization/ASTReader.cpp clang/lib/Serialization/ASTWriter.cpp 
clang/utils/TableGen/ClangBuiltinsEmitter.cpp 
flang-rt/lib/runtime/edit-input.cpp flang-rt/lib/runtime/exceptions.cpp 
flang-rt/unittests/Runtime/Exceptions.cpp 
flang/include/flang/Common/fp-control.h flang/lib/Evaluate/host.cpp 
llvm/include/llvm/Support/Compiler.h llvm/lib/Analysis/ConstantFolding.cpp 
--diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/flang-rt/lib/runtime/edit-input.cpp 
b/flang-rt/lib/runtime/edit-input.cpp
index 69fc309dc..a363af2aa 100644
--- a/flang-rt/lib/runtime/edit-input.cpp
+++ b/flang-rt/lib/runtime/edit-input.cpp
@@ -9,10 +9,10 @@
 #include "edit-input.h"
 #include "flang-rt/runtime/namelist.h"
 #include "flang-rt/runtime/utf.h"
+#include "flang/Common/fp-control.h"
 #include "flang/Common/optional.h"
 #include "flang/Common/real.h"
 #include "flang/Common/uint128.h"
-#include "flang/Common/fp-control.h"
 #include "flang/Runtime/freestanding-tools.h"
 #include <algorithm>
 #include <cfenv>
diff --git a/flang/include/flang/Common/fp-control.h 
b/flang/include/flang/Common/fp-control.h
index a231b8352..67b40d91e 100644
--- a/flang/include/flang/Common/fp-control.h
+++ b/flang/include/flang/Common/fp-control.h
@@ -21,7 +21,7 @@
 #ifndef FORTRAN_COMMON_FP_CONTROL_H_
 #define FORTRAN_COMMON_FP_CONTROL_H_
 
-#ifdef HAVE_STDC_FENV_ACCESS 
+#ifdef HAVE_STDC_FENV_ACCESS
 #define FLANG_FENV_ACCESS_ON _Pragma("STDC FENV_ACCESS ON")
 #else
 #define FLANG_FENV_ACCESS_ON
diff --git a/llvm/include/llvm/Support/Compiler.h 
b/llvm/include/llvm/Support/Compiler.h
index 9a08b01bd..2426f1271 100644
--- a/llvm/include/llvm/Support/Compiler.h
+++ b/llvm/include/llvm/Support/Compiler.h
@@ -811,7 +811,7 @@ void AnnotateIgnoreWritesEnd(const char *file, int line);
 #define LLVM_CPU_SUPPORTS_SSE42 LLVM_CPU_SUPPORTS("sse4.2")
 #endif
 
-#ifdef HAVE_STDC_FENV_ACCESS 
+#ifdef HAVE_STDC_FENV_ACCESS
 #define LLVM_FENV_ACCESS_ON _Pragma("STDC FENV_ACCESS ON")
 #else
 #define LLVM_FENV_ACCESS_ON

``````````

</details>


https://github.com/llvm/llvm-project/pull/199009
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to