Skip to content

Commit 1fa3847

Browse files
author
Dave Bartolomeo
committed
C++: Autoformat
1 parent c526532 commit 1fa3847

File tree

5 files changed

+25
-25
lines changed
  • cpp/ql/src/semmle/code/cpp/ir/implementation
  • csharp/ql/src/experimental/ir/implementation

5 files changed

+25
-25
lines changed

cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/IR.qll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
/**
22
* Provides classes that describe the Intermediate Representation (IR) of the program.
3-
*
3+
*
44
* The IR is a representation of the semantics of the program, with very little dependence on the
55
* syntax that was used to write the program. For example, in C++, the statements `i += 1;`, `i++`,
66
* and `++i` all have the same semantic effect, but appear in the AST as three different types of
77
* `Expr` node. In the IR, all three statements are broken down into a sequence of fundamental
88
* operations similar to:
9-
*
9+
*
1010
* ```
1111
* r1(int*) = VariableAddress[i] // Compute the address of variable `i`
1212
* r2(int) = Load &:r1, m0 // Load the value of `i`
1313
* r3(int) = Constant[1] // An integer constant with the value `1`
1414
* r4(int) = Add r2, r3 // Add `1` to the value of `i`
1515
* r5(int) = Store &r1, r4 // Store the new value back into the variable `i`
1616
* ```
17-
*
17+
*
1818
* This allows IR-based analysis to focus on the fundamental operations, rather than having to be
1919
* concerned with the various ways of expressing those operations in source code.
20-
*
20+
*
2121
* The key classes in the IR are:
22-
*
22+
*
2323
* - `IRFunction` - Contains the IR for an entire function definition, including all of that
2424
* function's `Instruction`s, `IRBlock`s, and `IRVariables`.
2525
* - `Instruction` - A single operation in the IR. An instruction specifies the operation to be

cpp/ql/src/semmle/code/cpp/ir/implementation/raw/IR.qll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
/**
22
* Provides classes that describe the Intermediate Representation (IR) of the program.
3-
*
3+
*
44
* The IR is a representation of the semantics of the program, with very little dependence on the
55
* syntax that was used to write the program. For example, in C++, the statements `i += 1;`, `i++`,
66
* and `++i` all have the same semantic effect, but appear in the AST as three different types of
77
* `Expr` node. In the IR, all three statements are broken down into a sequence of fundamental
88
* operations similar to:
9-
*
9+
*
1010
* ```
1111
* r1(int*) = VariableAddress[i] // Compute the address of variable `i`
1212
* r2(int) = Load &:r1, m0 // Load the value of `i`
1313
* r3(int) = Constant[1] // An integer constant with the value `1`
1414
* r4(int) = Add r2, r3 // Add `1` to the value of `i`
1515
* r5(int) = Store &r1, r4 // Store the new value back into the variable `i`
1616
* ```
17-
*
17+
*
1818
* This allows IR-based analysis to focus on the fundamental operations, rather than having to be
1919
* concerned with the various ways of expressing those operations in source code.
20-
*
20+
*
2121
* The key classes in the IR are:
22-
*
22+
*
2323
* - `IRFunction` - Contains the IR for an entire function definition, including all of that
2424
* function's `Instruction`s, `IRBlock`s, and `IRVariables`.
2525
* - `Instruction` - A single operation in the IR. An instruction specifies the operation to be

cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/IR.qll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
/**
22
* Provides classes that describe the Intermediate Representation (IR) of the program.
3-
*
3+
*
44
* The IR is a representation of the semantics of the program, with very little dependence on the
55
* syntax that was used to write the program. For example, in C++, the statements `i += 1;`, `i++`,
66
* and `++i` all have the same semantic effect, but appear in the AST as three different types of
77
* `Expr` node. In the IR, all three statements are broken down into a sequence of fundamental
88
* operations similar to:
9-
*
9+
*
1010
* ```
1111
* r1(int*) = VariableAddress[i] // Compute the address of variable `i`
1212
* r2(int) = Load &:r1, m0 // Load the value of `i`
1313
* r3(int) = Constant[1] // An integer constant with the value `1`
1414
* r4(int) = Add r2, r3 // Add `1` to the value of `i`
1515
* r5(int) = Store &r1, r4 // Store the new value back into the variable `i`
1616
* ```
17-
*
17+
*
1818
* This allows IR-based analysis to focus on the fundamental operations, rather than having to be
1919
* concerned with the various ways of expressing those operations in source code.
20-
*
20+
*
2121
* The key classes in the IR are:
22-
*
22+
*
2323
* - `IRFunction` - Contains the IR for an entire function definition, including all of that
2424
* function's `Instruction`s, `IRBlock`s, and `IRVariables`.
2525
* - `Instruction` - A single operation in the IR. An instruction specifies the operation to be

csharp/ql/src/experimental/ir/implementation/raw/IR.qll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
/**
22
* Provides classes that describe the Intermediate Representation (IR) of the program.
3-
*
3+
*
44
* The IR is a representation of the semantics of the program, with very little dependence on the
55
* syntax that was used to write the program. For example, in C++, the statements `i += 1;`, `i++`,
66
* and `++i` all have the same semantic effect, but appear in the AST as three different types of
77
* `Expr` node. In the IR, all three statements are broken down into a sequence of fundamental
88
* operations similar to:
9-
*
9+
*
1010
* ```
1111
* r1(int*) = VariableAddress[i] // Compute the address of variable `i`
1212
* r2(int) = Load &:r1, m0 // Load the value of `i`
1313
* r3(int) = Constant[1] // An integer constant with the value `1`
1414
* r4(int) = Add r2, r3 // Add `1` to the value of `i`
1515
* r5(int) = Store &r1, r4 // Store the new value back into the variable `i`
1616
* ```
17-
*
17+
*
1818
* This allows IR-based analysis to focus on the fundamental operations, rather than having to be
1919
* concerned with the various ways of expressing those operations in source code.
20-
*
20+
*
2121
* The key classes in the IR are:
22-
*
22+
*
2323
* - `IRFunction` - Contains the IR for an entire function definition, including all of that
2424
* function's `Instruction`s, `IRBlock`s, and `IRVariables`.
2525
* - `Instruction` - A single operation in the IR. An instruction specifies the operation to be

csharp/ql/src/experimental/ir/implementation/unaliased_ssa/IR.qll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
/**
22
* Provides classes that describe the Intermediate Representation (IR) of the program.
3-
*
3+
*
44
* The IR is a representation of the semantics of the program, with very little dependence on the
55
* syntax that was used to write the program. For example, in C++, the statements `i += 1;`, `i++`,
66
* and `++i` all have the same semantic effect, but appear in the AST as three different types of
77
* `Expr` node. In the IR, all three statements are broken down into a sequence of fundamental
88
* operations similar to:
9-
*
9+
*
1010
* ```
1111
* r1(int*) = VariableAddress[i] // Compute the address of variable `i`
1212
* r2(int) = Load &:r1, m0 // Load the value of `i`
1313
* r3(int) = Constant[1] // An integer constant with the value `1`
1414
* r4(int) = Add r2, r3 // Add `1` to the value of `i`
1515
* r5(int) = Store &r1, r4 // Store the new value back into the variable `i`
1616
* ```
17-
*
17+
*
1818
* This allows IR-based analysis to focus on the fundamental operations, rather than having to be
1919
* concerned with the various ways of expressing those operations in source code.
20-
*
20+
*
2121
* The key classes in the IR are:
22-
*
22+
*
2323
* - `IRFunction` - Contains the IR for an entire function definition, including all of that
2424
* function's `Instruction`s, `IRBlock`s, and `IRVariables`.
2525
* - `Instruction` - A single operation in the IR. An instruction specifies the operation to be

0 commit comments

Comments
 (0)