Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A13-2-2: bitwise/arithmetic operator alert reported for an insertion operator (operator<<) #11

Closed
Assignees
mbaluda
Labels
Difficulty-MediumA false positive or false negative report which is expected to take 1-5 days effort to addressImpact-Mediumfalse positive/false negativeAn issue related to observed false positives or false negatives.user-reportIssue reported by an end user of CodeQL Coding Standards
@mbaluda

Description

@mbaluda

Affected rules

  • A13-2-2

Description

A false positive alert is reported for the following code example which is not trying to implement a bitwise or arithmetic operator:

User-defined bitwise or arithmetic operator test::operator<<(ostream &, const Test &) -> ostream & does not return a prvalue.

Example

#include<ostream>namespacetest {structTest {};std::ostream&operator<<(std::ostream& os,const Test&) {// A13-2-2 reported here  os <<"test";return os;}}// namespace test

Metadata

Metadata

Assignees

Labels

Difficulty-MediumA false positive or false negative report which is expected to take 1-5 days effort to addressImpact-Mediumfalse positive/false negativeAn issue related to observed false positives or false negatives.user-reportIssue reported by an end user of CodeQL Coding Standards

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp