Skip to content

Commit 4e0a6ac

Browse files
committed
Add overlay annotations in 4 PrintAst query files
1 parent 9faada0 commit 4e0a6ac

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

go/ql/test/library-tests/semmle/go/PrintAst/PrintAstExcludeComments.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import go
66
import semmle.go.PrintAst
77

8+
overlay[local]
89
class Cfg extends PrintAstConfiguration {
910
override predicate shouldPrintFunction(FuncDecl func) { any() }
1011

go/ql/test/library-tests/semmle/go/PrintAst/PrintAstNestedFunction.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import go
66
import semmle.go.PrintAst
77

8+
overlay[local]
89
class Cfg extends PrintAstConfiguration {
910
override predicate shouldPrintFunction(FuncDecl func) { func.getName() = "hasNested" }
1011

go/ql/test/library-tests/semmle/go/PrintAst/PrintAstRestrictFile.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import go
66
import semmle.go.PrintAst
77

8+
overlay[local]
89
class Cfg extends PrintAstConfiguration {
910
override predicate shouldPrintFunction(FuncDecl func) { any() }
1011

go/ql/test/library-tests/semmle/go/PrintAst/PrintAstRestrictFunction.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import go
66
import semmle.go.PrintAst
77

8+
overlay[local]
89
class Cfg extends PrintAstConfiguration {
910
override predicate shouldPrintFunction(FuncDecl func) { func.getName() = "g" }
1011

0 commit comments

Comments
 (0)