File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,12 @@ import cpp
1919import codingstandards.cpp.autosar
2020
2121predicate isVectorBool ( ClassTemplateInstantiation c ) {
22- c .getNamespace ( ) instanceof StdNamespace and
22+ (
23+ c .getNamespace ( ) instanceof StdNamespace
24+ or
25+ c .getNamespace ( ) .isInline ( ) and
26+ c .getNamespace ( ) .getParentNamespace ( ) instanceof StdNamespace
27+ ) and
2328 c .getTemplateArgument ( 0 ) instanceof BoolType and
2429 c .getSimpleName ( ) = "vector"
2530}
Original file line number Diff line number Diff line change @@ -17,7 +17,12 @@ import cpp
1717import codingstandards.cpp.autosar
1818
1919predicate isAutoPtr ( ClassTemplateInstantiation c ) {
20- c .getNamespace ( ) instanceof StdNamespace and
20+ (
21+ c .getNamespace ( ) instanceof StdNamespace
22+ or
23+ c .getNamespace ( ) .isInline ( ) and
24+ c .getNamespace ( ) .getParentNamespace ( ) instanceof StdNamespace
25+ ) and
2126 c .getSimpleName ( ) = "auto_ptr"
2227}
2328
Original file line number Diff line number Diff line change 1+ | test.cpp:3:19:3:19 | g | Use of std::vector<bool> specialization. |
2+ | test.cpp:18:21:18:21 | l | Use of std::vector<bool> specialization. |
3+ | test.cpp:20:8:20:9 | l3 | Use of std::vector<bool> specialization. |
4+ | test.cpp:23:34:23:35 | l6 | Use of std::vector<bool> specialization. |
5+ | test.cpp:24:47:24:48 | l7 | Use of std::vector<bool> specialization. |
6+ | test.cpp:27:36:27:37 | it | Use of std::vector<bool> specialization. |
7+ | test.cpp:34:40:34:41 | d3 | Use of std::vector<bool> specialization. |
Original file line number Diff line number Diff line change 1+ | test.cpp:3:19:3:19 | g | Use of std::vector<bool> specialization. |
2+ | test.cpp:18:21:18:21 | l | Use of std::vector<bool> specialization. |
3+ | test.cpp:20:8:20:9 | l3 | Use of std::vector<bool> specialization. |
4+ | test.cpp:23:34:23:35 | l6 | Use of std::vector<bool> specialization. |
5+ | test.cpp:24:47:24:48 | l7 | Use of std::vector<bool> specialization. |
6+ | test.cpp:27:36:27:37 | it | Use of std::vector<bool> specialization. |
7+ | test.cpp:34:40:34:41 | d3 | Use of std::vector<bool> specialization. |
Original file line number Diff line number Diff line change 1+ | test.cpp:3:19:3:19 | g | Use of std::vector<bool> specialization. |
2+ | test.cpp:18:21:18:21 | l | Use of std::vector<bool> specialization. |
3+ | test.cpp:20:8:20:9 | l3 | Use of std::vector<bool> specialization. |
4+ | test.cpp:23:34:23:35 | l6 | Use of std::vector<bool> specialization. |
5+ | test.cpp:24:47:24:48 | l7 | Use of std::vector<bool> specialization. |
6+ | test.cpp:27:36:27:37 | it | Use of std::vector<bool> specialization. |
7+ | test.cpp:34:40:34:41 | d3 | Use of std::vector<bool> specialization. |
You can’t perform that action at this time.
0 commit comments