From 22bd10132f82501c291751ed1efea68376bba52e Mon Sep 17 00:00:00 2001 From: Paolo Tranquilli Date: Thu, 20 Oct 2022 10:49:26 +0200 Subject: [PATCH] Swift: insert blank line between `doc` and `desc` --- swift/codegen/templates/ql_class.mustache | 10 ++++++++-- swift/ql/lib/codeql/swift/generated/Callable.qll | 1 + .../codeql/swift/generated/decl/ConcreteVarDecl.qll | 1 + 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/swift/codegen/templates/ql_class.mustache b/swift/codegen/templates/ql_class.mustache index b68098b2a91..bc86f24852b 100644 --- a/swift/codegen/templates/ql_class.mustache +++ b/swift/codegen/templates/ql_class.mustache @@ -73,7 +73,10 @@ module Generated { } /** - * {{>ql_property_doc}}{{#has_description}}{{#description}} * {{.}} + * {{>ql_property_doc}} * + {{#has_description}} + {{#description}} + * {{.}} {{/description}} {{/has_description}} */ @@ -85,7 +88,10 @@ module Generated { {{^type_is_class}} {{^is_predicate}} /** - * {{>ql_property_doc}}{{#has_description}}{{#description}} * {{.}} + * {{>ql_property_doc}} * + {{#has_description}} + {{#description}} + * {{.}} {{/description}} {{/has_description}} */ diff --git a/swift/ql/lib/codeql/swift/generated/Callable.qll b/swift/ql/lib/codeql/swift/generated/Callable.qll index c6669cb97a4..23826ccb129 100644 --- a/swift/ql/lib/codeql/swift/generated/Callable.qll +++ b/swift/ql/lib/codeql/swift/generated/Callable.qll @@ -71,6 +71,7 @@ module Generated { /** * Gets the body of this callable, if it exists. + * * The body is absent within protocol declarations. */ final BraceStmt getBody() { result = getImmediateBody().resolve() } diff --git a/swift/ql/lib/codeql/swift/generated/decl/ConcreteVarDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/ConcreteVarDecl.qll index f97263defe8..64fb97b0299 100644 --- a/swift/ql/lib/codeql/swift/generated/decl/ConcreteVarDecl.qll +++ b/swift/ql/lib/codeql/swift/generated/decl/ConcreteVarDecl.qll @@ -9,6 +9,7 @@ module Generated { /** * Gets the introducer enumeration value. + * * This is 0 if the variable was introduced with `let` and 1 if it was introduced with `var`. */ int getIntroducerInt() {