mirror of
https://github.com/github/codeql.git
synced 2025-12-22 11:46:32 +01:00
[CPP-418] Tweak vector initializer syntax.
This commit is contained in:
committed by
Geoffrey White
parent
ecb700c8f4
commit
89655612b0
@@ -1009,7 +1009,7 @@ class PointerType extends DerivedType {
|
|||||||
* A C++ reference type. See 4.9.1.
|
* A C++ reference type. See 4.9.1.
|
||||||
*
|
*
|
||||||
* For C++11 code bases, this includes both _lvalue_ references (`&`) and _rvalue_ references (`&&`).
|
* For C++11 code bases, this includes both _lvalue_ references (`&`) and _rvalue_ references (`&&`).
|
||||||
* To distinguish between them, use the LValueReferenceType and RValueReferenceType classes.
|
* To distinguish between them, use the LValueReferenceType and RValueReferenceType QL classes.
|
||||||
*/
|
*/
|
||||||
class ReferenceType extends DerivedType {
|
class ReferenceType extends DerivedType {
|
||||||
ReferenceType() {
|
ReferenceType() {
|
||||||
@@ -1172,7 +1172,7 @@ class ArrayType extends DerivedType {
|
|||||||
* typedef int v4si __attribute__ (( vector_size(4*sizeof(int)) ));
|
* typedef int v4si __attribute__ (( vector_size(4*sizeof(int)) ));
|
||||||
* v4si v = { 1, 2, 3, 4 };
|
* v4si v = { 1, 2, 3, 4 };
|
||||||
* typedef float float4 __attribute__((ext_vector_type(4)));
|
* typedef float float4 __attribute__((ext_vector_type(4)));
|
||||||
* float4 vf = (float4)(1.0f, 2.0f, 3.0f, 4.0f);
|
* float4 vf = (float4){1.0f, 2.0f, 3.0f, 4.0f};
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
class GNUVectorType extends DerivedType {
|
class GNUVectorType extends DerivedType {
|
||||||
|
|||||||
Reference in New Issue
Block a user