[clang] [clang][Interp] Fix creating APSInt from IntegralAP (PR #71410)

via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 6 08:14:40 PST 2023


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 8f76522a61d01cf7d70debd39418259e969bb8d6 81836da057f2703f49f30d31955306577a0e1170 -- clang/lib/AST/Interp/IntegralAP.h clang/test/AST/Interp/intap.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/AST/Interp/IntegralAP.h b/clang/lib/AST/Interp/IntegralAP.h
index 134b602d1bb6..f88e7cd19347 100644
--- a/clang/lib/AST/Interp/IntegralAP.h
+++ b/clang/lib/AST/Interp/IntegralAP.h
@@ -120,7 +120,7 @@ public:
   constexpr unsigned bitWidth() const { return V.getBitWidth(); }
 
   APSInt toAPSInt(unsigned Bits = 0) const { return APSInt(V, !Signed); }
-  APValue toAPValue() const {return APValue(APSInt(V, !Signed)); }
+  APValue toAPValue() const { return APValue(APSInt(V, !Signed)); }
 
   bool isZero() const { return V.isZero(); }
   bool isPositive() const { return V.isNonNegative(); }

``````````

</details>


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


More information about the cfe-commits mailing list