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

Appearance settings

A3-3-1: missing compliant declarations #97

Copy link
Copy link
@rcseacord

Description

@rcseacord
Issue body actions

Affected rules

A3-3-1

Description

Add additional compliant declarations to the test code.

Example

The test file test.cpp is missing some tests.

// I would add the following lines to the text case

const int c = 1;  // COMPLIANT - internal linkage
const char* const str2 = "foo";    // COMPLIANT - internal linkage
constexpr int k = 1;   // COMPLIANT - internal linkage

Most const-qualified objects have internal linkage.
See the [basic.link] subclause of the C++ Standard for additional information.

Metadata

Metadata

Assignees

Labels

Difficulty-LowA false positive or false negative report which is expected to take <1 day effort to addressA false positive or false negative report which is expected to take <1 day effort to addressImpact-Lowfalse positive/false negativeAn issue related to observed false positives or false negatives.An issue related to observed false positives or false negatives.user-reportIssue reported by an end user of CodeQL Coding StandardsIssue reported by an end user of CodeQL Coding Standards

Type

No type

Projects

Status

Done
Show more project fields

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.