File tree Expand file tree Collapse file tree 4 files changed +27
-1
lines changed Expand file tree Collapse file tree 4 files changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,12 @@ import cpp
19
19
import codingstandards.cpp.autosar
20
20
21
21
predicate 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
23
28
c .getTemplateArgument ( 0 ) instanceof BoolType and
24
29
c .getSimpleName ( ) = "vector"
25
30
}
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