Skip to content

Commit 3a66b04

Browse files
committed
C#: add debug switch to IRConfiguration
1 parent de2d23b commit 3a66b04

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

csharp/ql/src/semmle/code/csharp/ir/IRConfiguration.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import csharp
66

77
private newtype TIRConfiguration = MkIRConfiguration()
8+
private import semmle.code.csharp.ir.internal.IRCSharpLanguage as Language
89

910
/**
1011
* The query can extend this class to control which functions have IR generated for them.
@@ -16,4 +17,6 @@ class IRConfiguration extends TIRConfiguration {
1617
* Holds if IR should be created for callable `callable`. By default, holds for all callables.
1718
*/
1819
predicate shouldCreateIRForFunction(Callable callable) { any() }
20+
21+
predicate shouldEvaluateDebugStringsForFunction(Language::Function func) { any() }
1922
}

0 commit comments

Comments
 (0)