mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
C++: Autoformat
This commit is contained in:
@@ -280,9 +280,7 @@ private predicate automaticVariableAddressEscapes(IRAutomaticVariable var) {
|
||||
predicate variableAddressEscapes(IRVariable var) {
|
||||
exists(IREscapeAnalysisConfiguration config |
|
||||
config.useSoundEscapeAnalysis() and
|
||||
(
|
||||
automaticVariableAddressEscapes(var.(IRAutomaticVariable))
|
||||
)
|
||||
automaticVariableAddressEscapes(var.(IRAutomaticVariable))
|
||||
)
|
||||
or
|
||||
// All variables with static storage duration have their address escape, even when escape analysis
|
||||
|
||||
@@ -1947,9 +1947,7 @@ class TranslatedThrowValueExpr extends TranslatedThrowExpr, TranslatedVariableIn
|
||||
result = TranslatedVariableInitialization.super.getInstructionSuccessor(tag, kind)
|
||||
}
|
||||
|
||||
final override Instruction getInitializationSuccessor() {
|
||||
result = getInstruction(ThrowTag())
|
||||
}
|
||||
final override Instruction getInitializationSuccessor() { result = getInstruction(ThrowTag()) }
|
||||
|
||||
final override predicate hasTempVariable(TempVariableTag tag, CppType type) {
|
||||
tag = ThrowTempVar() and
|
||||
@@ -1981,9 +1979,7 @@ class TranslatedThrowValueExpr extends TranslatedThrowExpr, TranslatedVariableIn
|
||||
result = getTranslatedInitialization(expr.getExpr().getFullyConverted())
|
||||
}
|
||||
|
||||
final override IRVariable getIRVariable() {
|
||||
result = getIRTempVariable(expr, ThrowTempVar())
|
||||
}
|
||||
final override IRVariable getIRVariable() { result = getIRTempVariable(expr, ThrowTempVar()) }
|
||||
|
||||
final override Opcode getThrowOpcode() { result instanceof Opcode::ThrowValue }
|
||||
|
||||
|
||||
@@ -143,9 +143,7 @@ class TranslatedReturnValueStmt extends TranslatedReturnStmt, TranslatedVariable
|
||||
result = getTranslatedInitialization(stmt.getExpr().getFullyConverted())
|
||||
}
|
||||
|
||||
final override IRVariable getIRVariable() {
|
||||
result = getEnclosingFunction().getReturnVariable()
|
||||
}
|
||||
final override IRVariable getIRVariable() { result = getEnclosingFunction().getReturnVariable() }
|
||||
}
|
||||
|
||||
class TranslatedReturnVoidStmt extends TranslatedReturnStmt {
|
||||
|
||||
@@ -280,9 +280,7 @@ private predicate automaticVariableAddressEscapes(IRAutomaticVariable var) {
|
||||
predicate variableAddressEscapes(IRVariable var) {
|
||||
exists(IREscapeAnalysisConfiguration config |
|
||||
config.useSoundEscapeAnalysis() and
|
||||
(
|
||||
automaticVariableAddressEscapes(var.(IRAutomaticVariable))
|
||||
)
|
||||
automaticVariableAddressEscapes(var.(IRAutomaticVariable))
|
||||
)
|
||||
or
|
||||
// All variables with static storage duration have their address escape, even when escape analysis
|
||||
|
||||
Reference in New Issue
Block a user