[clang] [Sema] Add code completion for if constexpr and consteval (PR #124315)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Feb 23 09:24:30 PST 2025
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 9d1fbbd2b9a00248eb8ea578c4047af4ec4da990 914e63cbc8ac24c808da647fe9516e1d10866c87 --extensions h,cpp -- clang/test/CodeCompletion/if-const.cpp clang/include/clang/Sema/SemaCodeCompletion.h clang/lib/Parse/ParseStmt.cpp clang/lib/Sema/SemaCodeComplete.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Sema/SemaCodeComplete.cpp b/clang/lib/Sema/SemaCodeComplete.cpp
index b3351387ac..f4f3970cb6 100644
--- a/clang/lib/Sema/SemaCodeComplete.cpp
+++ b/clang/lib/Sema/SemaCodeComplete.cpp
@@ -6753,7 +6753,8 @@ void SemaCodeCompletion::CodeCompleteIfConst(Scope *S) const {
ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(),
CodeCompleter->getCodeCompletionTUInfo(),
CodeCompletionContext::CCC_Other);
- CodeCompletionBuilder Builder(Results.getAllocator(), Results.getCodeCompletionTUInfo());
+ CodeCompletionBuilder Builder(Results.getAllocator(),
+ Results.getCodeCompletionTUInfo());
Results.EnterNewScope();
if (getLangOpts().CPlusPlus17) {
if (Results.includeCodePatterns()) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/124315
More information about the cfe-commits
mailing list