Skip to content

Commit 2f82f43

Browse files
committed
QL: Dont ask me to inline cached predicates
1 parent d049b11 commit 2f82f43

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)