Skip to content

Commit a5a8555

Browse files
author
Dimitri Ratz
committed
Fix code format.
1 parent 49574d8 commit a5a8555

File tree

2 files changed

+17
-15
lines changed

2 files changed

+17
-15
lines changed

clang-tools-extra/clangd/AST.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,16 @@ bool isConst(const Decl *D);
182182
// This is confusing, and maybe we should use another name, but because "static"
183183
// is a standard LSP modifier, having one with that name has advantages.
184184
bool isStatic(const Decl *D);
185-
// Indicates whether declaration D is abstract in cases where D is a struct or a class.
185+
// Indicates whether declaration D is abstract in cases where D is a struct or a
186+
// class.
186187
bool isAbstract(const Decl *D);
187188
// Indicates whether declaration D is virtual in cases where D is a method.
188189
bool isVirtual(const Decl *D);
189-
// Indicates whether declaration D is final in cases where D is a struct, class or method.
190+
// Indicates whether declaration D is final in cases where D is a struct, class
191+
// or method.
190192
bool isFinal(const Decl *D);
191-
// Indicates whether declaration D is a unique definition (as opposed to a declaration).
193+
// Indicates whether declaration D is a unique definition (as opposed to a
194+
// declaration).
192195
bool isUniqueDefinition(const NamedDecl *Decl);
193196
/// Returns a nested name specifier loc of \p ND if it was present in the
194197
/// source, e.g.

clang-tools-extra/clangd/Protocol.h

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ struct TextDocumentEdit {
281281
/// The text document to change.
282282
VersionedTextDocumentIdentifier textDocument;
283283

284-
/// The edits to be applied.
284+
/// The edits to be applied.
285285
/// FIXME: support the AnnotatedTextEdit variant.
286286
std::vector<TextEdit> edits;
287287
};
@@ -560,7 +560,7 @@ struct ClientCapabilities {
560560

561561
/// The client supports versioned document changes for WorkspaceEdit.
562562
bool DocumentChanges = false;
563-
563+
564564
/// The client supports change annotations on text edits,
565565
bool ChangeAnnotation = false;
566566

@@ -1027,12 +1027,12 @@ struct WorkspaceEdit {
10271027
/// Versioned document edits.
10281028
///
10291029
/// If a client neither supports `documentChanges` nor
1030-
/// `workspace.workspaceEdit.resourceOperations` then only plain `TextEdit`s
1031-
/// using the `changes` property are supported.
1030+
/// `workspace.workspaceEdit.resourceOperations` then only plain `TextEdit`s
1031+
/// using the `changes` property are supported.
10321032
std::optional<std::vector<TextDocumentEdit>> documentChanges;
1033-
1033+
10341034
/// A map of change annotations that can be referenced in
1035-
/// AnnotatedTextEdit.
1035+
/// AnnotatedTextEdit.
10361036
std::map<std::string, ChangeAnnotation> changeAnnotations;
10371037
};
10381038
bool fromJSON(const llvm::json::Value &, WorkspaceEdit &, llvm::json::Path);
@@ -1104,13 +1104,13 @@ struct CodeAction {
11041104
};
11051105
llvm::json::Value toJSON(const CodeAction &);
11061106

1107-
enum class SymbolTag {
1107+
enum class SymbolTag {
11081108
Deprecated = 1,
11091109
Private = 2,
11101110
Package = 3,
11111111
Protected = 4,
11121112
Public = 5,
1113-
Internal= 6,
1113+
Internal = 6,
11141114
File = 7,
11151115
Static = 8,
11161116
Abstract = 9,
@@ -1314,13 +1314,13 @@ enum class InsertTextFormat {
13141314
/// Additional details for a completion item label.
13151315
struct CompletionItemLabelDetails {
13161316
/// An optional string which is rendered less prominently directly after label
1317-
/// without any spacing. Should be used for function signatures or type
1317+
/// without any spacing. Should be used for function signatures or type
13181318
/// annotations.
13191319
std::string detail;
13201320

13211321
/// An optional string which is rendered less prominently after
1322-
/// CompletionItemLabelDetails.detail. Should be used for fully qualified
1323-
/// names or file path.
1322+
/// CompletionItemLabelDetails.detail. Should be used for fully qualified
1323+
/// names or file path.
13241324
std::string description;
13251325
};
13261326
llvm::json::Value toJSON(const CompletionItemLabelDetails &);
@@ -1598,7 +1598,6 @@ struct ResolveTypeHierarchyItemParams {
15981598
bool fromJSON(const llvm::json::Value &, ResolveTypeHierarchyItemParams &,
15991599
llvm::json::Path);
16001600

1601-
16021601
/// The parameter of a `textDocument/prepareCallHierarchy` request.
16031602
struct CallHierarchyPrepareParams : public TextDocumentPositionParams {};
16041603

0 commit comments

Comments
 (0)