mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
[CPP-418] Mention that GNU vector initializers are syntactically
similar to array initializers.
This commit is contained in:
committed by
Geoffrey White
parent
d0069fcacd
commit
5cc92b7502
@@ -310,6 +310,9 @@ class ArrayAggregateLiteral extends ArrayOrVectorAggregateLiteral {
|
||||
|
||||
/**
|
||||
* A C/C++ aggregate literal that initializes a GNU vector type.
|
||||
*
|
||||
* Braced initializer lists are used, similarly to what is done
|
||||
* for arrays.
|
||||
* ```
|
||||
* typedef int v4si __attribute__ (( vector_size(4*sizeof(int)) ));
|
||||
* v4si v = (v4si){ 1, 2, 3, 4 };
|
||||
|
||||
Reference in New Issue
Block a user