File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ private AstNode getSelectPart(Select sel, int index) {
2323 (
2424 n = getASubExpression ( sel ) and loc = n .getLocation ( )
2525 or
26+ // TODO: Use dataflow instead.
2627 // the strings are behind a predicate call.
2728 exists ( Call c , Predicate target | c = getASubExpression ( sel ) and loc = c .getLocation ( ) |
2829 c .getTarget ( ) = target and
@@ -188,6 +189,7 @@ String doubleWhitespace(Select sel) {
188189 * Gets an expression that repeats the alert-loc as a link.
189190 */
190191VarAccess getAlertLocLink ( Select sel ) {
192+ // TODO: Get this to work with GVN. I got an infinite loop when I tried.
191193 result = sel .getExpr ( 0 ) .( VarAccess ) .getDeclaration ( ) .getAnAccess ( ) and
192194 exists ( int msgIndex | sel .getExpr ( msgIndex ) = sel .getMessage ( ) |
193195 result = sel .getExpr ( any ( int i | i > msgIndex ) )
You can’t perform that action at this time.
0 commit comments