mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
C++: QLDoc for IRConfiguration.qll
This commit is contained in:
@@ -10,6 +10,7 @@ private newtype TIRConfiguration = MkIRConfiguration()
|
||||
* The query can extend this class to control which functions have IR generated for them.
|
||||
*/
|
||||
class IRConfiguration extends TIRConfiguration {
|
||||
/** Gets a textual representation of this element. */
|
||||
string toString() { result = "IRConfiguration" }
|
||||
|
||||
/**
|
||||
@@ -17,6 +18,13 @@ class IRConfiguration extends TIRConfiguration {
|
||||
*/
|
||||
predicate shouldCreateIRForFunction(Language::Function func) { any() }
|
||||
|
||||
/**
|
||||
* Holds if the strings used as part of an IR dump should be generated for function `func`.
|
||||
*
|
||||
* This predicate is overridden in `PrintIR.qll` to avoid the expense of generating a large number
|
||||
* of debug strings for IR that will not be dumped. We still generate the actual IR for these
|
||||
* functions, however, to preserve the results of any interprocedural analysis.
|
||||
*/
|
||||
predicate shouldEvaluateDebugStringsForFunction(Language::Function func) { any() }
|
||||
}
|
||||
|
||||
@@ -26,6 +34,7 @@ private newtype TIREscapeAnalysisConfiguration = MkIREscapeAnalysisConfiguration
|
||||
* The query can extend this class to control what escape analysis is used when generating SSA.
|
||||
*/
|
||||
class IREscapeAnalysisConfiguration extends TIREscapeAnalysisConfiguration {
|
||||
/** Gets a textual representation of this element. */
|
||||
string toString() { result = "IREscapeAnalysisConfiguration" }
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user