[clang] [NFC] Move warning from CodeGen to Sema. (PR #107397)

via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 12 09:07:23 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 f77f60400f7a4c0c50bc3e3144cdade3bdf9aa3d 51acb49fa02ce4306e251649d7d7d23c65477d07 --extensions c,h,cpp -- clang/include/clang/AST/ASTContext.h clang/include/clang/Sema/Sema.h clang/lib/CodeGen/CGExprComplex.cpp clang/lib/Sema/Sema.cpp clang/lib/Sema/SemaAttr.cpp clang/lib/Sema/SemaExpr.cpp clang/test/Sema/complex-arithmetic.c
``````````

</details>

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

``````````diff
diff --git a/clang/include/clang/Sema/Sema.h b/clang/include/clang/Sema/Sema.h
index 075a2b79c3..09e83a309b 100644
--- a/clang/include/clang/Sema/Sema.h
+++ b/clang/include/clang/Sema/Sema.h
@@ -7964,7 +7964,7 @@ public:
   /// Do an explicit extend of the given block pointer if we're in ARC.
   void maybeExtendBlockObject(ExprResult &E);
 
-   std::vector<std::tuple<SourceLocation, QualType, unsigned>>
+  std::vector<std::tuple<SourceLocation, QualType, unsigned>>
       ExcessPrecisionNotSatisfied;
   unsigned NumExcessPrecisionNotSatisfied = 0;
   SourceLocation LocationOfExcessPrecisionNotSatisfied;

``````````

</details>


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


More information about the cfe-commits mailing list