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 origin/main HEAD --extensions cpp,h -- 
clang-tools-extra/clangd/ClangdLSPServer.cpp 
clang-tools-extra/clangd/CodeComplete.cpp 
clang-tools-extra/clangd/CodeComplete.h clang-tools-extra/clangd/Protocol.cpp 
clang-tools-extra/clangd/Protocol.h 
clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp 
clang/include/clang/Lex/Lexer.h clang/lib/Lex/Lexer.cpp 
clang/unittests/Lex/LexerTest.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/clang-tools-extra/clangd/CodeComplete.cpp 
b/clang-tools-extra/clangd/CodeComplete.cpp
index c58ef139b..f5882abb9 100644
--- a/clang-tools-extra/clangd/CodeComplete.cpp
+++ b/clang-tools-extra/clangd/CodeComplete.cpp
@@ -2275,7 +2275,8 @@ CompletionPrefix guessCompletionPrefix(llvm::StringRef 
Content,
 }
 
 // If Offset is inside what looks like argument comment (e.g.
-// "/*^*/" or "/* foo = ^*/"), returns the offset pointing past the closing 
"*/".
+// "/*^*/" or "/* foo = ^*/"), returns the offset pointing past the closing
+// "*/".
 static std::optional<unsigned>
 maybeFunctionArgumentCommentEnd(const PathRef FileName, const unsigned Offset,
                                 const llvm::StringRef Content,

``````````

</details>


https://github.com/llvm/llvm-project/pull/187623
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to