Skip to content

Commit d0fc348

Browse files
committed
C++: autoformat
1 parent f94fcf1 commit d0fc348

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedExpr.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,7 @@ abstract class TranslatedExpr extends TranslatedElement {
8080
/** DEPRECATED: Alias for getAst */
8181
deprecated override Locatable getAST() { result = this.getAst() }
8282

83-
final override Declaration getFunction() {
84-
result = expr.getEnclosingDeclaration()
85-
}
83+
final override Declaration getFunction() { result = expr.getEnclosingDeclaration() }
8684

8785
/**
8886
* Gets the expression from which this `TranslatedExpr` is generated.

cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedGlobalVar.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ class TranslatedGlobalOrNamespaceVarInit extends TranslatedRootElement,
2424
override Instruction getFirstInstruction() { result = this.getInstruction(EnterFunctionTag()) }
2525

2626
override TranslatedElement getChild(int n) {
27-
n = 1 and result = getTranslatedInitialization(var.getInitializer().getExpr().getFullyConverted())
27+
n = 1 and
28+
result = getTranslatedInitialization(var.getInitializer().getExpr().getFullyConverted())
2829
}
2930

3031
override predicate hasInstruction(Opcode op, InstructionTag tag, CppType type) {

cpp/ql/test/library-tests/ir/ir/raw_ir.ql

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,5 @@ private import semmle.code.cpp.ir.implementation.raw.PrintIR
77
private import PrintConfig
88

99
private class PrintConfig extends PrintIRConfiguration {
10-
override predicate shouldPrintFunction(Declaration decl) {
11-
shouldDumpFunction(decl)
12-
}
10+
override predicate shouldPrintFunction(Declaration decl) { shouldDumpFunction(decl) }
1311
}

0 commit comments

Comments
 (0)