Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

`7-11-3`: FP for multiplication of template arguments

Open
#1,155 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
cpp
Domain
devtools

Research direction

Start with RULE-7-11-3 and reproduce the reported false positive using the template example, then inspect the rule logic for how template calls and pointer conversions are classified. Done means identifying the triggering pattern and preventing valid template calls from being reported as invalid pointer conversions, with a regression case if the repository's rule tests support it.

Written by the indexing model from the issue text.

Description

false positive/false negative
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;
  }
Dominant language
CodeQL
Stars
227
Forks
82
Avg merge
6d 7h
Merged PRs (30d)
9

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from github/codeql-coding-standards

All issues in github/codeql-coding-standards

Similar issues

More DevTools issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.