Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 20e28b8

Browse files
zlaski-semmlegeoffw0
authored andcommitted
[CPP-418] Reformat.
1 parent 2baa748 commit 20e28b8

4 files changed

Lines changed: 17 additions & 17 deletions

File tree

cpp/ql/src/semmle/code/cpp/Type.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,7 @@ class ArrayType extends DerivedType {
11841184
* allows vector types to be introduced using the `ext_vector_type`,
11851185
* `neon_vector_type`, and `neon_polyvector_type` attributes (all of which take
11861186
* an element count rather than a byte size).
1187-
*
1187+
*
11881188
* In the example below, both `v4si` and `float4` are GNU vector types:
11891189
* ```
11901190
* typedef int v4si __attribute__ (( vector_size(4*sizeof(int)) ));

cpp/ql/src/semmle/code/cpp/exprs/ArithmeticOperation.qll

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class UnaryPlusExpr extends UnaryArithmeticOperation, @unaryplusexpr {
4141
* functions.
4242
* ```
4343
* _Complex double a = ( 1.0, 2.0 );
44-
* _Complex double b = ~ a; // ( 1,0, - 2.0 )
44+
* _Complex double b = ~ a; // ( 1.0, - 2.0 )
4545
* ```
4646
*/
4747
class ConjugationExpr extends UnaryArithmeticOperation, @conjugation {
@@ -55,7 +55,7 @@ class ConjugationExpr extends UnaryArithmeticOperation, @conjugation {
5555
*
5656
* This is the abstract base QL class for increment and decrement operations.
5757
*
58-
* Note that this does not include calls to _user-defined_ `operator++`
58+
* Note that this does not include calls to user-defined `operator++`
5959
* or `operator--`.
6060
*/
6161
abstract class CrementOperation extends UnaryArithmeticOperation {
@@ -74,35 +74,35 @@ abstract class CrementOperation extends UnaryArithmeticOperation {
7474
/**
7575
* A C/C++ `++` expression (either prefix or postfix).
7676
*
77-
* Note that this does not include calls to _user-defined_ `operator++`.
77+
* Note that this does not include calls to user-defined `operator++`.
7878
*/
7979
abstract class IncrementOperation extends CrementOperation { }
8080

8181
/**
8282
* A C/C++ `--` expression (either prefix or postfix).
8383
*
84-
* Note that this does not include calls to _user-defined_ `operator--`.
84+
* Note that this does not include calls to user-defined `operator--`.
8585
*/
8686
abstract class DecrementOperation extends CrementOperation { }
8787

8888
/**
8989
* A C/C++ `++` or `--` prefix expression.
9090
*
91-
* Note that this does not include calls to _user-defined_ operators.
91+
* Note that this does not include calls to user-defined operators.
9292
*/
9393
abstract class PrefixCrementOperation extends CrementOperation { }
9494

9595
/**
9696
* A C/C++ `++` or `--` postfix expression.
9797
*
98-
* Note that this does not include calls to _user-defined_ operators.
98+
* Note that this does not include calls to user-defined operators.
9999
*/
100100
abstract class PostfixCrementOperation extends CrementOperation { }
101101

102102
/**
103103
* A C/C++ prefix increment expression, as in `++x`.
104104
*
105-
* Note that this does not include calls to _user-defined_ `operator++`.
105+
* Note that this does not include calls to user-defined `operator++`.
106106
* ```
107107
* b = ++a;
108108
* ```
@@ -118,7 +118,7 @@ class PrefixIncrExpr extends IncrementOperation, PrefixCrementOperation, @preinc
118118
/**
119119
* A C/C++ prefix decrement expression, as in `--x`.
120120
*
121-
* Note that this does not include calls to _user-defined_ `operator--`.
121+
* Note that this does not include calls to user-defined `operator--`.
122122
* ```
123123
* b = --a;
124124
* ```
@@ -134,7 +134,7 @@ class PrefixDecrExpr extends DecrementOperation, PrefixCrementOperation, @predec
134134
/**
135135
* A C/C++ postfix increment expression, as in `x++`.
136136
*
137-
* Note that this does not include calls to _user-defined_ `operator++`.
137+
* Note that this does not include calls to user-defined `operator++`.
138138
* ```
139139
* b = a++;
140140
* ```
@@ -152,7 +152,7 @@ class PostfixIncrExpr extends IncrementOperation, PostfixCrementOperation, @post
152152
/**
153153
* A C/C++ postfix decrement expression, as in `x--`.
154154
*
155-
* Note that this does not include calls to _user-defined_ `operator--`.
155+
* Note that this does not include calls to user-defined `operator--`.
156156
* ```
157157
* b = a--;
158158
* ```

cpp/ql/src/semmle/code/cpp/exprs/Call.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ class FunctionCall extends Call, @funbindexpr {
230230
* Gets the function called by this call.
231231
*
232232
* In the case of virtual function calls, the result is the most-specific function in the override tree (as
233-
* determined by the compiler) such that the target at runtime will be one of **result.getAnOverridingFunction\*()**.
233+
* determined by the compiler) such that the target at runtime will be one of `result.getAnOverridingFunction*()`.
234234
*/
235235
override Function getTarget() { funbind(underlyingElement(this), unresolveElement(result)) }
236236

cpp/ql/src/semmle/code/cpp/exprs/Expr.qll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ private import semmle.code.cpp.internal.AddressConstantExpression
55

66
/**
77
* A C/C++ expression.
8-
*
8+
*
99
* This is the root QL class for all expressions.
1010
*/
1111
class Expr extends StmtParent, @expr {
@@ -518,7 +518,7 @@ abstract class BinaryOperation extends Operation {
518518
* T member;
519519
* S() { member = T({ arg1, arg2 }); }
520520
* };
521-
* ```
521+
* ```
522522
*/
523523
class ParenthesizedBracedInitializerList extends Expr, @braced_init_list {
524524
override string toString() { result = "({...})" }
@@ -528,7 +528,7 @@ class ParenthesizedBracedInitializerList extends Expr, @braced_init_list {
528528

529529
/**
530530
* A C/C++ parenthesis expression.
531-
*
531+
*
532532
* It is typically used to raise the syntactic precedence of the subexpression that
533533
* it contains. For example:
534534
* ```
@@ -543,7 +543,7 @@ class ParenthesisExpr extends Conversion, @parexpr {
543543

544544
/**
545545
* A C/C++ expression that has not been resolved.
546-
*
546+
*
547547
* It is assigned `ErroneousType` as its type.
548548
*/
549549
class ErrorExpr extends Expr, @errorexpr {
@@ -554,7 +554,7 @@ class ErrorExpr extends Expr, @errorexpr {
554554

555555
/**
556556
* A Microsoft C/C++ __assume expression.
557-
*
557+
*
558558
* Unlike `assert`, `__assume` is evaluated at compile-time and
559559
* is treated as a hint to the optimizer
560560
* ```

0 commit comments

Comments
 (0)