From 89655612b0aa9f138a30a4a0f55b1441e93bcaa8 Mon Sep 17 00:00:00 2001 From: Ziemowit Laski Date: Mon, 9 Sep 2019 15:52:53 -0700 Subject: [PATCH] [CPP-418] Tweak vector initializer syntax. --- cpp/ql/src/semmle/code/cpp/Type.qll | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/ql/src/semmle/code/cpp/Type.qll b/cpp/ql/src/semmle/code/cpp/Type.qll index 4a60b5e8a1a..de223db45c9 100644 --- a/cpp/ql/src/semmle/code/cpp/Type.qll +++ b/cpp/ql/src/semmle/code/cpp/Type.qll @@ -1009,7 +1009,7 @@ class PointerType extends DerivedType { * A C++ reference type. See 4.9.1. * * 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 { ReferenceType() { @@ -1172,7 +1172,7 @@ class ArrayType extends DerivedType { * typedef int v4si __attribute__ (( vector_size(4*sizeof(int)) )); * v4si v = { 1, 2, 3, 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 {