We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b69df91 commit f6ccaa5Copy full SHA for f6ccaa5
cpp/ql/src/semmle/code/cpp/FriendDecl.qll
@@ -2,16 +2,17 @@ import semmle.code.cpp.Declaration
2
private import semmle.code.cpp.internal.ResolveClass
3
4
/**
5
- * A C++ friend declaration [N4140 11.3].
6
- * For example:
+ * A C++ friend declaration [N4140 11.3]. For example the two friend
+ * declarations in class `A` of the following code:
7
+ * ```
8
+ * class A {
9
+ * friend void f(int);
10
+ * friend class X;
11
+ * };
12
*
- * class A {
- * friend void f(int);
- * friend class X;
- * };
- *
13
- * void f(int x) { ... }
14
- * class X { ... };
+ * void f(int x) { ... }
+ * class X { ... };
15
16
*/
17
class FriendDecl extends Declaration, @frienddecl {
18
0 commit comments