Skip to content

Commit 9853241

Browse files
authored
Merge pull request github#12810 from asgerf/ql/missing-noinline-cached
QL: Don't warn about cached predicates possibly being inlined
2 parents d049b11 + 2f82f43 commit 9853241

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ql/ql/src/queries/performance/MissingNoinline.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ where
1717
not decl.getAnAnnotation() instanceof NoInline and
1818
not decl.getAnAnnotation() instanceof NoMagic and
1919
not decl.getAnAnnotation() instanceof NoOpt and
20+
not decl.getAnAnnotation().getName() = "cached" and
2021
// If it's marked as inline it's probably because the QLDoc says something like
2122
// "this predicate is inlined because it gives a better join-order".
2223
not decl.getAnAnnotation() instanceof Inline

0 commit comments

Comments
 (0)