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 h,cpp -- 
clang-tools-extra/clangd/AST.cpp clang-tools-extra/clangd/AST.h 
clang-tools-extra/clangd/FindSymbols.cpp clang-tools-extra/clangd/Protocol.cpp 
clang-tools-extra/clangd/Protocol.h 
clang-tools-extra/clangd/SemanticHighlighting.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/AST.h b/clang-tools-extra/clangd/AST.h
index ef1c95d26..3b4e6eb43 100644
--- a/clang-tools-extra/clangd/AST.h
+++ b/clang-tools-extra/clangd/AST.h
@@ -182,13 +182,16 @@ bool isConst(const Decl *D);
 // This is confusing, and maybe we should use another name, but because 
"static"
 // is a standard LSP modifier, having one with that name has advantages.
 bool isStatic(const Decl *D);
-// Indicates whether declaration D is abstract in cases where D is a struct or 
a class.
+// Indicates whether declaration D is abstract in cases where D is a struct or 
a
+// class.
 bool isAbstract(const Decl *D);
 // Indicates whether declaration D is virtual in cases where D is a method.
 bool isVirtual(const Decl *D);
-// Indicates whether declaration D is final in cases where D is a struct, 
class or method.
+// Indicates whether declaration D is final in cases where D is a struct, class
+// or method.
 bool isFinal(const Decl *D);
-// Indicates whether declaration D is a unique definition (as opposed to a 
declaration).
+// Indicates whether declaration D is a unique definition (as opposed to a
+// declaration).
 bool isUniqueDefinition(const NamedDecl *Decl);
 /// Returns a nested name specifier loc of \p ND if it was present in the
 /// source, e.g.
diff --git a/clang-tools-extra/clangd/Protocol.h 
b/clang-tools-extra/clangd/Protocol.h
index 607551f1b..f64555497 100644
--- a/clang-tools-extra/clangd/Protocol.h
+++ b/clang-tools-extra/clangd/Protocol.h
@@ -1104,13 +1104,13 @@ struct CodeAction {
 };
 llvm::json::Value toJSON(const CodeAction &);
 
-enum class SymbolTag { 
+enum class SymbolTag {
   Deprecated = 1,
   Private = 2,
   Package = 3,
   Protected = 4,
   Public = 5,
-  Internal= 6,
+  Internal = 6,
   File = 7,
   Static = 8,
   Abstract = 9,
@@ -1598,7 +1598,6 @@ struct ResolveTypeHierarchyItemParams {
 bool fromJSON(const llvm::json::Value &, ResolveTypeHierarchyItemParams &,
               llvm::json::Path);
 
-
 /// The parameter of a `textDocument/prepareCallHierarchy` request.
 struct CallHierarchyPrepareParams : public TextDocumentPositionParams {};
 

``````````

</details>


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

Reply via email to