Open
Description
Affected rules
- A8-5-2
Description
This rule reports violation for the following code (which is correct as per the rule).
Example
void example_function() {
const int32_t a {array[i]};
int32_t ret {0};
myclass01 bbb {6};
}
The reason seems to be the limitation mentioned in the query that CodeQL doesn't store this syntactic information about the form of initialization in the database. The heuristic implemented in the query to check for the violation doesn't work for the above code snippet because of the presence of a whitespace between the variable name and the initialization.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Triaged