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

Skip to content

Commit f255977

Browse files
zlaski-semmlegeoffw0
authored andcommitted
[CPP-418] Some more complex numbers, vectors.
1 parent 8965561 commit f255977

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,8 +1171,6 @@ class ArrayType extends DerivedType {
11711171
* ```
11721172
* typedef int v4si __attribute__ (( vector_size(4*sizeof(int)) ));
11731173
* v4si v = { 1, 2, 3, 4 };
1174-
* typedef float float4 __attribute__((ext_vector_type(4)));
1175-
* float4 vf = (float4){1.0f, 2.0f, 3.0f, 4.0f};
11761174
* ```
11771175
*/
11781176
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)