Skip to content

Commit ee9cced

Browse files
committed
[CPP-418] Some more complex numbers, vectors.
1 parent b62707d commit ee9cced

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,8 +1169,6 @@ class ArrayType extends DerivedType {
11691169
* ```
11701170
* typedef int v4si __attribute__ (( vector_size(4*sizeof(int)) ));
11711171
* v4si v = { 1, 2, 3, 4 };
1172-
* typedef float float4 __attribute__((ext_vector_type(4)));
1173-
* float4 vf = (float4){1.0f, 2.0f, 3.0f, 4.0f};
11741172
* ```
11751173
*/
11761174
class GNUVectorType extends DerivedType {

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,7 @@ class PostfixDecrExpr extends DecrementOperation, PostfixCrementOperation, @post
171171
* A C/C++ GNU real part expression. It operates on `_Complex` or
172172
* `__complex__` numbers.
173173
* ```
174-
* #include <complex.h>
175-
* _Complex double f = CMPLX( 2.0, 3.0 );
174+
* _Complex double f = { 2.0, 3.0 };
176175
* double d = __real(f); // 2.0
177176
* ```
178177
*/
@@ -186,8 +185,7 @@ class RealPartExpr extends UnaryArithmeticOperation, @realpartexpr {
186185
* A C/C++ GNU imaginary part expression. It operates on `_Complex` or
187186
* `__complex__` numbers.
188187
* ```
189-
* #include <complex.h>
190-
* _Complex double f = CMPLX( 2.0, 3.0 );
188+
* _Complex double f = { 2.0, 3.0 };
191189
* double d = __imag(f); // 3.0
192190
* ```
193191
*/

0 commit comments

Comments
 (0)