Java: Autoformat.

This commit is contained in:
Anders Schack-Mulligen
2019-08-21 14:38:17 +02:00
parent c2d1a52b39
commit 629c19e719
11 changed files with 14 additions and 20 deletions

View File

@@ -57,5 +57,7 @@ predicate declaredInLoop(LocalVariableDecl v, LoopStmt loop) {
from Assignment a, Variable v
where
useAndDef(a, v) and
exists(LoopStmt loop | a.getEnclosingStmt().getEnclosingStmt*() = loop | not declaredInLoop(v, loop))
exists(LoopStmt loop | a.getEnclosingStmt().getEnclosingStmt*() = loop |
not declaredInLoop(v, loop)
)
select a, "The string " + v.getName() + " is built-up in a loop: use string buffer."