You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
clang-format: Various fixes to comments alignment from clang-format 13
All reviewed manually and occasionally rewritten to avoid bad auto formatting.
This commit is contained in:
@@ -358,21 +358,21 @@ struct Command {
|
||||
|
||||
namespace TextDocumentSyncKind {
|
||||
/**
|
||||
* Documents should not be synced at all.
|
||||
*/
|
||||
* Documents should not be synced at all.
|
||||
*/
|
||||
static const int None = 0;
|
||||
|
||||
/**
|
||||
* Documents are synced by always sending the full content
|
||||
* of the document.
|
||||
*/
|
||||
* Documents are synced by always sending the full content
|
||||
* of the document.
|
||||
*/
|
||||
static const int Full = 1;
|
||||
|
||||
/**
|
||||
* Documents are synced by sending the full content on open.
|
||||
* After that only incremental updates to the document are
|
||||
* send.
|
||||
*/
|
||||
* Documents are synced by sending the full content on open.
|
||||
* After that only incremental updates to the document are
|
||||
* send.
|
||||
*/
|
||||
static const int Incremental = 2;
|
||||
}; // namespace TextDocumentSyncKind
|
||||
|
||||
@@ -667,20 +667,20 @@ struct TextDocumentContentChangeEvent {
|
||||
// Use namespace instead of enumeration to follow the LSP specifications
|
||||
namespace DiagnosticSeverity {
|
||||
/**
|
||||
* Reports an error.
|
||||
*/
|
||||
* Reports an error.
|
||||
*/
|
||||
static const int Error = 1;
|
||||
/**
|
||||
* Reports a warning.
|
||||
*/
|
||||
* Reports a warning.
|
||||
*/
|
||||
static const int Warning = 2;
|
||||
/**
|
||||
* Reports an information.
|
||||
*/
|
||||
* Reports an information.
|
||||
*/
|
||||
static const int Information = 3;
|
||||
/**
|
||||
* Reports a hint.
|
||||
*/
|
||||
* Reports a hint.
|
||||
*/
|
||||
static const int Hint = 4;
|
||||
}; // namespace DiagnosticSeverity
|
||||
|
||||
@@ -871,18 +871,18 @@ static const int TypeParameter = 25;
|
||||
*/
|
||||
namespace InsertTextFormat {
|
||||
/**
|
||||
* The primary text to be inserted is treated as a plain string.
|
||||
*/
|
||||
* The primary text to be inserted is treated as a plain string.
|
||||
*/
|
||||
static const int PlainText = 1;
|
||||
|
||||
/**
|
||||
* The primary text to be inserted is treated as a snippet.
|
||||
*
|
||||
* A snippet can define tab stops and placeholders with `$1`, `$2`
|
||||
* and `${3:foo}`. `$0` defines the final tab stop, it defaults to
|
||||
* the end of the snippet. Placeholders with equal identifiers are linked,
|
||||
* that is typing in one will update others too.
|
||||
*/
|
||||
* The primary text to be inserted is treated as a snippet.
|
||||
*
|
||||
* A snippet can define tab stops and placeholders with `$1`, `$2`
|
||||
* and `${3:foo}`. `$0` defines the final tab stop, it defaults to
|
||||
* the end of the snippet. Placeholders with equal identifiers are linked,
|
||||
* that is typing in one will update others too.
|
||||
*/
|
||||
static const int Snippet = 2;
|
||||
}; // namespace InsertTextFormat
|
||||
|
||||
@@ -1359,16 +1359,16 @@ struct NativeSymbolInspectParams {
|
||||
*/
|
||||
namespace FoldingRangeKind {
|
||||
/**
|
||||
* Folding range for a comment
|
||||
*/
|
||||
* Folding range for a comment
|
||||
*/
|
||||
static const String Comment = "comment";
|
||||
/**
|
||||
* Folding range for a imports or includes
|
||||
*/
|
||||
* Folding range for a imports or includes
|
||||
*/
|
||||
static const String Imports = "imports";
|
||||
/**
|
||||
* Folding range for a region (e.g. `#region`)
|
||||
*/
|
||||
* Folding range for a region (e.g. `#region`)
|
||||
*/
|
||||
static const String Region = "region";
|
||||
} // namespace FoldingRangeKind
|
||||
|
||||
@@ -1419,20 +1419,20 @@ struct FoldingRange {
|
||||
*/
|
||||
namespace CompletionTriggerKind {
|
||||
/**
|
||||
* Completion was triggered by typing an identifier (24x7 code
|
||||
* complete), manual invocation (e.g Ctrl+Space) or via API.
|
||||
*/
|
||||
* Completion was triggered by typing an identifier (24x7 code
|
||||
* complete), manual invocation (e.g Ctrl+Space) or via API.
|
||||
*/
|
||||
static const int Invoked = 1;
|
||||
|
||||
/**
|
||||
* Completion was triggered by a trigger character specified by
|
||||
* the `triggerCharacters` properties of the `CompletionRegistrationOptions`.
|
||||
*/
|
||||
* Completion was triggered by a trigger character specified by
|
||||
* the `triggerCharacters` properties of the `CompletionRegistrationOptions`.
|
||||
*/
|
||||
static const int TriggerCharacter = 2;
|
||||
|
||||
/**
|
||||
* Completion was re-triggered as the current completion list is incomplete.
|
||||
*/
|
||||
* Completion was re-triggered as the current completion list is incomplete.
|
||||
*/
|
||||
static const int TriggerForIncompleteCompletions = 3;
|
||||
} // namespace CompletionTriggerKind
|
||||
|
||||
@@ -1441,8 +1441,8 @@ static const int TriggerForIncompleteCompletions = 3;
|
||||
*/
|
||||
struct CompletionContext {
|
||||
/**
|
||||
* How the completion was triggered.
|
||||
*/
|
||||
* How the completion was triggered.
|
||||
*/
|
||||
int triggerKind = CompletionTriggerKind::TriggerCharacter;
|
||||
|
||||
/**
|
||||
@@ -1906,7 +1906,7 @@ struct GodotNativeClassInfo {
|
||||
struct GodotCapabilities {
|
||||
/**
|
||||
* Native class list
|
||||
*/
|
||||
*/
|
||||
List<GodotNativeClassInfo> native_classes;
|
||||
|
||||
Dictionary to_json() {
|
||||
|
||||
Reference in New Issue
Block a user