-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathIdentifierHiding.ql
More file actions
26 lines (24 loc) · 1.03 KB
/
IdentifierHiding.ql
File metadata and controls
26 lines (24 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**
* @id cpp/autosar/identifier-hiding
* @name A2-10-1: An identifier declared in an inner scope shall not hide an identifier declared in an outer scope
* @description Use of an identifier declared in an inner scope with an identical name to an
* identifier in an outer scope can lead to inadvertent errors if the incorrect
* identifier is modified.
* @kind problem
* @precision very-high
* @problem.severity warning
* @tags external/autosar/id/a2-10-1
* readability
* maintainability
* external/autosar/allocated-target/architecture
* external/autosar/allocated-target/design
* external/autosar/allocated-target/implementation
* external/autosar/enforcement/automated
* external/autosar/obligation/required
*/
import cpp
import codingstandards.cpp.autosar
import codingstandards.cpp.rules.identifierhidden.IdentifierHidden
class IdentifierHidingCQuery extends IdentifierHiddenSharedQuery {
IdentifierHidingCQuery() { this = NamingPackage::identifierHidingQuery() }
}