Skip to content

Commit 3602750

Browse files
committed
C++: Add QLDoc.
1 parent ce277c4 commit 3602750

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎cpp/ql/lib/semmle/code/cpp/dataflow/ExternalFlow.qll‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,6 +1164,10 @@ private Type stripReference(Type unspecified) {
11641164
result = unspecified
11651165
}
11661166

1167+
/**
1168+
* Encapsulates predicates used to compute which constructor a perfect
1169+
* forwarding function targets.
1170+
*/
11671171
module ConstructorForwarding {
11681172
private import codeql.util.Boolean
11691173

@@ -1504,6 +1508,10 @@ module ConstructorForwarding {
15041508
)
15051509
}
15061510

1511+
/**
1512+
* Gets the `Constructor` that should be invoked with arguments `0 .. n`
1513+
* when `forwarder` is called with arguments `start + 0 .. start + n`.
1514+
*/
15071515
Cpp::Constructor getForwardingConstructor(Function forwarder, int start) {
15081516
exists(int numberOfForwardedArguments |
15091517
numberOfForwardedArguments <= result.getNumberOfParameters()

0 commit comments

Comments
 (0)