We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e4d625 commit d5073a8Copy full SHA for d5073a8
1 file changed
cpp/autosar/src/rules/A18-1-3/AutoPtrTypeUsed.ql
@@ -17,7 +17,12 @@ import cpp
17
import codingstandards.cpp.autosar
18
19
predicate isAutoPtr(ClassTemplateInstantiation c) {
20
- c.getNamespace() instanceof StdNamespace and
+ (
21
+ c.getNamespace() instanceof StdNamespace
22
+ or
23
+ c.getNamespace().isInline() and
24
+ c.getNamespace().getParentNamespace() instanceof StdNamespace
25
+ ) and
26
c.getSimpleName() = "auto_ptr"
27
}
28
0 commit comments