Skip to content

Commit 488d41f

Browse files
committed
C++: QLDoc Cast.qll.
1 parent 6639d6d commit 488d41f

File tree

1 file changed

+8
-0
lines changed
  • cpp/ql/src/semmle/code/cpp/exprs

1 file changed

+8
-0
lines changed

cpp/ql/src/semmle/code/cpp/exprs/Cast.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 C/C++ casts and conversions, as well as some
3+
* type related operators such as `sizeof` and `alignof`.
4+
*/
5+
16
import semmle.code.cpp.exprs.Expr
27
private import semmle.code.cpp.internal.ResolveClass
38

@@ -660,6 +665,9 @@ class UuidofOperator extends Expr, @uuidof {
660665
* ```
661666
*/
662667
class TypeidOperator extends Expr, @type_id {
668+
/**
669+
* Gets the type that is returned by this typeid expression.
670+
*/
663671
Type getResultType() { typeid_bind(underlyingElement(this), unresolveElement(result)) }
664672

665673
/**

0 commit comments

Comments
 (0)