Skip to content

Commit f6ccaa5

Browse files
committed
CPP: Examples FriendDecl.qll.
1 parent b69df91 commit f6ccaa5

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

cpp/ql/src/semmle/code/cpp/FriendDecl.qll

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@ import semmle.code.cpp.Declaration
22
private import semmle.code.cpp.internal.ResolveClass
33

44
/**
5-
* A C++ friend declaration [N4140 11.3].
6-
* For example:
5+
* A C++ friend declaration [N4140 11.3]. For example the two friend
6+
* declarations in class `A` of the following code:
7+
* ```
8+
* class A {
9+
* friend void f(int);
10+
* friend class X;
11+
* };
712
*
8-
* class A {
9-
* friend void f(int);
10-
* friend class X;
11-
* };
12-
*
13-
* void f(int x) { ... }
14-
* class X { ... };
13+
* void f(int x) { ... }
14+
* class X { ... };
15+
* ```
1516
*/
1617
class FriendDecl extends Declaration, @frienddecl {
1718
/**

0 commit comments

Comments
 (0)