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

Skip to content

Commit 5cc92b7

Browse files
zlaski-semmlegeoffw0
authored andcommitted
[CPP-418] Mention that GNU vector initializers are syntactically
similar to array initializers.
1 parent d0069fc commit 5cc92b7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,9 @@ class ArrayAggregateLiteral extends ArrayOrVectorAggregateLiteral {
310310

311311
/**
312312
* A C/C++ aggregate literal that initializes a GNU vector type.
313+
*
314+
* Braced initializer lists are used, similarly to what is done
315+
* for arrays.
313316
* ```
314317
* typedef int v4si __attribute__ (( vector_size(4*sizeof(int)) ));
315318
* v4si v = (v4si){ 1, 2, 3, 4 };

0 commit comments

Comments
 (0)