mirror of
https://github.com/github/codeql.git
synced 2026-03-30 12:18:18 +02:00
Add overlay annotations in 4 PrintAst tests
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
import go
|
||||
import semmle.go.PrintAst
|
||||
|
||||
overlay[local]
|
||||
class Cfg extends PrintAstConfiguration {
|
||||
override predicate shouldPrintFunction(FuncDecl func) { any() }
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
import go
|
||||
import semmle.go.PrintAst
|
||||
|
||||
overlay[local]
|
||||
class Cfg extends PrintAstConfiguration {
|
||||
override predicate shouldPrintFunction(FuncDecl func) { func.getName() = "hasNested" }
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
import go
|
||||
import semmle.go.PrintAst
|
||||
|
||||
overlay[local]
|
||||
class Cfg extends PrintAstConfiguration {
|
||||
override predicate shouldPrintFunction(FuncDecl func) { any() }
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
import go
|
||||
import semmle.go.PrintAst
|
||||
|
||||
overlay[local]
|
||||
class Cfg extends PrintAstConfiguration {
|
||||
override predicate shouldPrintFunction(FuncDecl func) { func.getName() = "g" }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user