Skip to content

A3-3-1: missing compliant declarations #97

@rcseacord

Description

@rcseacord

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 addressImpact-Lowfalse 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