mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
C++: autoformat
This commit is contained in:
@@ -80,9 +80,7 @@ abstract class TranslatedExpr extends TranslatedElement {
|
||||
/** DEPRECATED: Alias for getAst */
|
||||
deprecated override Locatable getAST() { result = this.getAst() }
|
||||
|
||||
final override Declaration getFunction() {
|
||||
result = expr.getEnclosingDeclaration()
|
||||
}
|
||||
final override Declaration getFunction() { result = expr.getEnclosingDeclaration() }
|
||||
|
||||
/**
|
||||
* Gets the expression from which this `TranslatedExpr` is generated.
|
||||
|
||||
@@ -24,7 +24,8 @@ class TranslatedGlobalOrNamespaceVarInit extends TranslatedRootElement,
|
||||
override Instruction getFirstInstruction() { result = this.getInstruction(EnterFunctionTag()) }
|
||||
|
||||
override TranslatedElement getChild(int n) {
|
||||
n = 1 and result = getTranslatedInitialization(var.getInitializer().getExpr().getFullyConverted())
|
||||
n = 1 and
|
||||
result = getTranslatedInitialization(var.getInitializer().getExpr().getFullyConverted())
|
||||
}
|
||||
|
||||
override predicate hasInstruction(Opcode op, InstructionTag tag, CppType type) {
|
||||
|
||||
@@ -7,7 +7,5 @@ private import semmle.code.cpp.ir.implementation.raw.PrintIR
|
||||
private import PrintConfig
|
||||
|
||||
private class PrintConfig extends PrintIRConfiguration {
|
||||
override predicate shouldPrintFunction(Declaration decl) {
|
||||
shouldDumpFunction(decl)
|
||||
}
|
||||
override predicate shouldPrintFunction(Declaration decl) { shouldDumpFunction(decl) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user