[clang] [clang][Interp] Handle std::move etc. builtins (PR #70772)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 15 00:38:21 PST 2024


Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>,
Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>,
Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>,
Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/70772 at github.com>


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 e3993e044ec5925e59c131f798f823a9f16f0433 f4f4dd022d09dee65b6152d083af1c7fba9c8052 -- clang/lib/AST/Interp/ByteCodeExprGen.h clang/lib/AST/Interp/Context.h clang/lib/AST/Interp/Interp.cpp clang/lib/AST/Interp/InterpBuiltin.cpp clang/test/AST/Interp/functions.cpp clang/test/SemaCXX/builtin-std-move.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/AST/Interp/Interp.cpp b/clang/lib/AST/Interp/Interp.cpp
index 3956eec6cd..ae25ce13fd 100644
--- a/clang/lib/AST/Interp/Interp.cpp
+++ b/clang/lib/AST/Interp/Interp.cpp
@@ -383,9 +383,9 @@ bool CheckCallable(InterpState &S, CodePtr OpPC, const Function *F) {
           << CD->getInheritedConstructor().getConstructor()->getParent();
         S.Note(DiagDecl->getLocation(), diag::note_declared_at);
       } else {
-        // Don't emit anything if the function isn't defined and we're checking for
-        // a constnat expression. It might be defined at the point we're actually
-        // calling it.
+        // Don't emit anything if the function isn't defined and we're checking
+        // for a constnat expression. It might be defined at the point we're
+        // actually calling it.
         if (!DiagDecl->isDefined() && S.checkingPotentialConstantExpression())
           return false;
 

``````````

</details>


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


More information about the cfe-commits mailing list