C#: Autoformat.

This commit is contained in:
Anders Schack-Mulligen
2020-01-22 14:30:55 +01:00
parent 96e4a57edd
commit 726a873c3e
126 changed files with 800 additions and 560 deletions

View File

@@ -52,6 +52,7 @@ class DefaultToStringType extends ValueOrRefType {
query predicate problems(Expr e, string s, DefaultToStringType t, string name) {
invokesToString(e, t) and
s = "Default 'ToString()': $@ inherits 'ToString()' from 'Object', and so is not suitable for printing." and
s =
"Default 'ToString()': $@ inherits 'ToString()' from 'Object', and so is not suitable for printing." and
name = t.getName()
}

View File

@@ -14,7 +14,8 @@ import csharp
predicate emptyStmt(Stmt s) {
s instanceof EmptyStmt
or
s = any(BlockStmt bs |
s =
any(BlockStmt bs |
bs.getNumberOfStmts() = 0
or
bs.getNumberOfStmts() = 1 and