C++: Introduce relation for tracking braced initializers

This commit is contained in:
Jeroen Ketema
2022-05-30 11:24:47 +02:00
parent b6cc438390
commit 38be04461e
9 changed files with 8468 additions and 0 deletions

View File

@@ -51,4 +51,7 @@ class Initializer extends ControlFlowNode, @initialiser {
override Function getControlFlowScope() { result = this.getExpr().getEnclosingFunction() }
override Stmt getEnclosingStmt() { result = this.getExpr().getEnclosingStmt() }
/** Holds if the initializer used the C++ braced initializer notation. */
predicate isBraced() { braced_initialisers(underlyingElement(this)) }
}