From 6eac51dba4f271ef778dacd27e439597fd6bd543 Mon Sep 17 00:00:00 2001 From: Ziemowit Laski Date: Mon, 16 Sep 2019 16:34:17 -0700 Subject: [PATCH] [CPP-418] Address review comments. --- cpp/ql/src/semmle/code/cpp/Type.qll | 11 +- .../src/semmle/code/cpp/exprs/Assignment.qll | 4 +- .../code/cpp/exprs/BuiltInOperations.qll | 46 ++++---- cpp/ql/src/semmle/code/cpp/exprs/Cast.qll | 100 +++++++++--------- cpp/ql/src/semmle/code/cpp/exprs/Expr.qll | 36 +++---- 5 files changed, 101 insertions(+), 96 deletions(-) diff --git a/cpp/ql/src/semmle/code/cpp/Type.qll b/cpp/ql/src/semmle/code/cpp/Type.qll index 7e7a1ebf943..1f97b1aae9b 100644 --- a/cpp/ql/src/semmle/code/cpp/Type.qll +++ b/cpp/ql/src/semmle/code/cpp/Type.qll @@ -312,7 +312,7 @@ class BuiltInType extends Type, @builtintype { /** * An erroneous type. This type has no corresponding C/C++ syntax. * - * ErroneousType is the type of ErrorExpr, which it turn refers to an illegal + * ErroneousType is the type of ErrorExpr, which in turn refers to an illegal * language construct. In the example below, a temporary (`0`) cannot be bound * to an lvalue reference (`int &`): * ``` @@ -1335,7 +1335,6 @@ class FunctionPointerIshType extends DerivedType { * int C::* p = &C::m; // pointer to data member m of class C * class C *; * int val = c.*p; // access data member - * * ``` */ class PointerToMemberType extends Type, @ptrtomember { @@ -1434,11 +1433,11 @@ class RoutineType extends Type, @routinetype { } /** - * A C++ typename template parameter. + * A C++ `typename` (or `class`) template parameter. * * In the example below, `T` is a template parameter: * ``` - * template + * template * class C { }; * ``` */ @@ -1458,8 +1457,8 @@ class TemplateParameter extends UserType { * In the example below, `T` is a template template parameter (although its name * may be omitted): * ``` - * template