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 {