Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3e17196

Browse files
authored
Merge pull request #369 from ian-semmle/generated_members
C++: Accept test changes after generating class membership info for generated functions
2 parents 91dad02 + 01d27d3 commit 3e17196

28 files changed

Lines changed: 1373 additions & 1364 deletions

File tree

cpp/ql/test/examples/expressions/PrintAST.expected

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
#-----| operator delete(void *) -> void
1+
#-----| __va_list_tag::operator=(__va_list_tag &&) -> __va_list_tag &
22
#-----| params:
33
#-----| 0: p#0
4-
#-----| Type = void *
5-
#-----| operator new(unsigned long) -> void *
4+
#-----| Type = __va_list_tag &&
5+
#-----| __va_list_tag::operator=(const __va_list_tag &) -> __va_list_tag &
66
#-----| params:
77
#-----| 0: p#0
8-
#-----| Type = unsigned long
9-
#-----| operator=(__va_list_tag &&) -> __va_list_tag &
8+
#-----| Type = const __va_list_tag &
9+
#-----| operator delete(void *) -> void
1010
#-----| params:
1111
#-----| 0: p#0
12-
#-----| Type = __va_list_tag &&
13-
#-----| operator=(const __va_list_tag &) -> __va_list_tag &
12+
#-----| Type = void *
13+
#-----| operator new(unsigned long) -> void *
1414
#-----| params:
1515
#-----| 0: p#0
16-
#-----| Type = const __va_list_tag &
16+
#-----| Type = unsigned long
1717
AddressOf.c:
1818
# 1| AddressOf(int) -> void
1919
# 1| params:

cpp/ql/test/header-variant-tests/deduplication/functions.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
| bar.h:1:13:1:15 | bar | MemberFunction | 1 | C |
33
| bar.h:1:13:1:15 | bar | MemberFunction | 1 | C |
44
| bar.h:1:13:1:15 | bar | MemberFunction | 2 | D |
5-
| file://:0:0:0:0 | operator= | Function | 0 | <none> |
6-
| file://:0:0:0:0 | operator= | Function | 0 | <none> |
5+
| file://:0:0:0:0 | operator= | MemberFunction | 0 | __va_list_tag |
6+
| file://:0:0:0:0 | operator= | MemberFunction | 0 | __va_list_tag |
77
| foo.h:1:13:1:15 | foo | Function | 1 | <none> |
88
| foo.h:1:13:1:15 | foo | MemberFunction | 1 | C |
99
| foo.h:1:13:1:15 | foo | MemberFunction | 1 | C |

0 commit comments

Comments
 (0)