File tree 1 file changed +2
-0
lines changed
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) {
23
23
(
24
24
n = getASubExpression ( sel ) and loc = n .getLocation ( )
25
25
or
26
+ // TODO: Use dataflow instead.
26
27
// the strings are behind a predicate call.
27
28
exists ( Call c , Predicate target | c = getASubExpression ( sel ) and loc = c .getLocation ( ) |
28
29
c .getTarget ( ) = target and
@@ -188,6 +189,7 @@ String doubleWhitespace(Select sel) {
188
189
* Gets an expression that repeats the alert-loc as a link.
189
190
*/
190
191
VarAccess getAlertLocLink ( Select sel ) {
192
+ // TODO: Get this to work with GVN. I got an infinite loop when I tried.
191
193
result = sel .getExpr ( 0 ) .( VarAccess ) .getDeclaration ( ) .getAnAccess ( ) and
192
194
exists ( int msgIndex | sel .getExpr ( msgIndex ) = sel .getMessage ( ) |
193
195
result = sel .getExpr ( any ( int i | i > msgIndex ) )
You can’t perform that action at this time.
0 commit comments