C#: Autoformat QL queries

This commit is contained in:
Tom Hvitved
2019-01-02 12:59:07 +01:00
parent 4348de3120
commit daa45322b1
277 changed files with 2462 additions and 2301 deletions

View File

@@ -12,8 +12,9 @@ import csharp
import semmle.code.csharp.frameworks.system.Text
from ObjectCreation creation, LoopStmt loop, ControlFlow::Node loopEntryNode
where creation.getType() instanceof SystemTextStringBuilderClass
and loopEntryNode = loop.getBody().getAControlFlowEntryNode()
and loop.getBody().getAChild*() = creation
and creation.getAControlFlowNode().postDominates(loopEntryNode)
where
creation.getType() instanceof SystemTextStringBuilderClass and
loopEntryNode = loop.getBody().getAControlFlowEntryNode() and
loop.getBody().getAChild*() = creation and
creation.getAControlFlowNode().postDominates(loopEntryNode)
select creation, "Creating a 'StringBuilder' in a loop."