Skip to content

7-11-3: FP for multiplication of template arguments #1155

Description

@MichaelRFairhurst

Affected rules

  • RULE-7-11-3

Description

Qlx is riddled with examples of function calls that are for some reason flagged as invalid pointer conversions.

It seems like maybe the common thread is that this occurs in templates when they call functions that don't depend on the template?

Example

This might be the type of thing that triggers it? It's unclear.

template <typename T>
class C {
  void use_t() {
    (T*) null;
    dont_use_t(); // here?
  }

  void dont_use_t() {
     return;
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    false positive/false negativeAn issue related to observed false positives or false negatives.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions