You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks
Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
This commit is contained in:
@@ -149,7 +149,6 @@ struct Location {
|
||||
* Represents a link between a source and a target location.
|
||||
*/
|
||||
struct LocationLink {
|
||||
|
||||
/**
|
||||
* Span of the origin of this link.
|
||||
*
|
||||
@@ -220,7 +219,6 @@ struct DocumentLinkParams {
|
||||
* text document or a web site.
|
||||
*/
|
||||
struct DocumentLink {
|
||||
|
||||
/**
|
||||
* The range this link applies to.
|
||||
*/
|
||||
@@ -1107,7 +1105,6 @@ struct DocumentedSymbolInformation : public SymbolInformation {
|
||||
* e.g. the range of an identifier.
|
||||
*/
|
||||
struct DocumentSymbol {
|
||||
|
||||
/**
|
||||
* The name of this symbol. Will be displayed in the user interface and therefore must not be
|
||||
* an empty string or a string only consisting of white spaces.
|
||||
@@ -1216,7 +1213,6 @@ struct DocumentSymbol {
|
||||
}
|
||||
|
||||
_FORCE_INLINE_ CompletionItem make_completion_item(bool resolved = false) const {
|
||||
|
||||
lsp::CompletionItem item;
|
||||
item.label = name;
|
||||
|
||||
@@ -1260,7 +1256,6 @@ struct DocumentSymbol {
|
||||
};
|
||||
|
||||
struct NativeSymbolInspectParams {
|
||||
|
||||
String native_class;
|
||||
String symbol_name;
|
||||
|
||||
@@ -1292,7 +1287,6 @@ static const String Region = "region";
|
||||
* Represents a folding range.
|
||||
*/
|
||||
struct FoldingRange {
|
||||
|
||||
/**
|
||||
* The zero-based line number from where the folded range starts.
|
||||
*/
|
||||
@@ -1375,7 +1369,6 @@ struct CompletionContext {
|
||||
};
|
||||
|
||||
struct CompletionParams : public TextDocumentPositionParams {
|
||||
|
||||
/**
|
||||
* The completion context. This is only available if the client specifies
|
||||
* to send this using `ClientCapabilities.textDocument.completion.contextSupport === true`
|
||||
@@ -1416,7 +1409,6 @@ struct Hover {
|
||||
* have a label and a doc-comment.
|
||||
*/
|
||||
struct ParameterInformation {
|
||||
|
||||
/**
|
||||
* The label of this parameter information.
|
||||
*
|
||||
@@ -1695,7 +1687,6 @@ struct InitializeResult {
|
||||
};
|
||||
|
||||
struct GodotNativeClassInfo {
|
||||
|
||||
String name;
|
||||
const DocData::ClassDoc *class_doc = nullptr;
|
||||
const ClassDB::ClassInfo *class_info = nullptr;
|
||||
@@ -1710,7 +1701,6 @@ struct GodotNativeClassInfo {
|
||||
|
||||
/** Features not included in the standard lsp specifications */
|
||||
struct GodotCapabilities {
|
||||
|
||||
/**
|
||||
* Native class list
|
||||
*/
|
||||
@@ -1729,7 +1719,6 @@ struct GodotCapabilities {
|
||||
|
||||
/** Format BBCode documentation from DocData to markdown */
|
||||
static String marked_documentation(const String &p_bbcode) {
|
||||
|
||||
String markdown = p_bbcode.strip_edges();
|
||||
|
||||
Vector<String> lines = markdown.split("\n");
|
||||
|
||||
Reference in New Issue
Block a user