Skip to content

Commit a722bd4

Browse files
committed
C++: QLDoc UserType.qll.
1 parent c8fc8af commit a722bd4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Provides classes for modeling user-defined types such as classes, typedefs
3+
* and enums.
4+
*/
5+
16
import semmle.code.cpp.Declaration
27
import semmle.code.cpp.Type
38
import semmle.code.cpp.Member
@@ -84,6 +89,9 @@ class UserType extends Type, Declaration, NameQualifyingElement, AccessHolder, @
8489
* type exactly - but this is not apparent from its subclasses
8590
*/
8691

92+
/**
93+
* Gets a child declaration within this user-defined type.
94+
*/
8795
Declaration getADeclaration() { none() }
8896

8997
override string explain() { result = this.getName() }

0 commit comments

Comments
 (0)