[clang] [flang] [flang] Add UNSIGNED (PR #113504)

via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 14 15:07:59 PST 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 376713ff505f31b698a3ab095fad7b6e08f99e74 d1e18cf072c63d064a749f580c57dc1c3123accd --extensions cpp,h -- clang/lib/Driver/ToolChains/Flang.cpp flang/include/flang/Common/Fortran-features.h flang/include/flang/Common/Fortran.h flang/include/flang/Evaluate/complex.h flang/include/flang/Evaluate/expression.h flang/include/flang/Evaluate/integer.h flang/include/flang/Evaluate/real.h flang/include/flang/Evaluate/tools.h flang/include/flang/Evaluate/type.h flang/include/flang/ISO_Fortran_binding.h flang/include/flang/Optimizer/Builder/FIRBuilder.h flang/include/flang/Optimizer/Builder/Runtime/RTBuilder.h flang/include/flang/Optimizer/Support/Utils.h flang/include/flang/Parser/dump-parse-tree.h flang/include/flang/Parser/parse-tree.h flang/include/flang/Runtime/cpp-type.h flang/include/flang/Runtime/numeric.h flang/include/flang/Runtime/reduce.h flang/include/flang/Runtime/reduction.h flang/include/flang/Semantics/expression.h flang/lib/Common/default-kinds.cpp flang/lib/Evaluate/expression.cpp flang/lib/Evaluate/fold-implementation.h flang/lib/Evaluate/fold-integer.cpp flang/lib/Evaluate/fold-logical.cpp flang/lib/Evaluate/fold-matmul.h flang/lib/Evaluate/fold-reduction.h flang/lib/Evaluate/formatting.cpp flang/lib/Evaluate/intrinsics.cpp flang/lib/Evaluate/target.cpp flang/lib/Evaluate/tools.cpp flang/lib/Evaluate/type.cpp flang/lib/Frontend/CompilerInvocation.cpp flang/lib/Lower/ConvertConstant.cpp flang/lib/Lower/ConvertExpr.cpp flang/lib/Lower/ConvertExprToHLFIR.cpp flang/lib/Lower/ConvertType.cpp flang/lib/Lower/IO.cpp flang/lib/Lower/Mangler.cpp flang/lib/Optimizer/Builder/IntrinsicCall.cpp flang/lib/Optimizer/Builder/Runtime/Reduction.cpp flang/lib/Optimizer/CodeGen/CodeGen.cpp flang/lib/Optimizer/Dialect/FIRType.cpp flang/lib/Parser/Fortran-parsers.cpp flang/lib/Parser/type-parsers.h flang/lib/Semantics/check-arithmeticif.cpp flang/lib/Semantics/check-case.cpp flang/lib/Semantics/expression.cpp flang/lib/Semantics/resolve-names.cpp flang/lib/Semantics/scope.cpp flang/lib/Semantics/tools.cpp flang/runtime/descriptor-io.h flang/runtime/dot-product.cpp flang/runtime/edit-output.cpp flang/runtime/edit-output.h flang/runtime/extrema.cpp flang/runtime/io-api-minimal.cpp flang/runtime/numeric.cpp flang/runtime/reduce.cpp flang/runtime/tools.h flang/runtime/type-code.cpp flang/runtime/type-info.cpp flang/unittests/Evaluate/real.cpp
``````````

</details>

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

``````````diff
diff --git a/flang/lib/Evaluate/fold-integer.cpp b/flang/lib/Evaluate/fold-integer.cpp
index 7e9b800bcf..ea39fb03f8 100644
--- a/flang/lib/Evaluate/fold-integer.cpp
+++ b/flang/lib/Evaluate/fold-integer.cpp
@@ -746,7 +746,8 @@ std::optional<Expr<T>> FoldIntrinsicFunctionCommon(
     } else {
       DIE("first argument must be CHARACTER");
     }
-  } else if (name == "int" || name == "int2" || name == "int8" || name == "uint") {
+  } else if (name == "int" || name == "int2" || name == "int8" ||
+      name == "uint") {
     if (auto *expr{UnwrapExpr<Expr<SomeType>>(args[0])}) {
       return common::visit(
           [&](auto &&x) -> Expr<T> {

``````````

</details>


https://github.com/llvm/llvm-project/pull/113504


More information about the cfe-commits mailing list