Skip to content

Commit c52f68e

Browse files
authored
Merge pull request github#3808 from geoffw0/qldoc4
C++: Yet more QLDoc
2 parents f792998 + 55883f6 commit c52f68e

14 files changed

+77
-1
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Provides classes for identifying files that contain test cases. It is often
3+
* desirable to exclude these files from analysis.
4+
*/
5+
16
import semmle.code.cpp.File
27

38
/**

cpp/ql/src/semmle/code/cpp/commons/StringAnalysis.qll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Provides a class for calculating the possible length of string expressions.
3+
*/
4+
15
import semmle.code.cpp.exprs.Expr
26
import semmle.code.cpp.controlflow.SSA
37

cpp/ql/src/semmle/code/cpp/exprs/Access.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Provides classes for modeling accesses including variable accesses, enum
3+
* constant accesses and function accesses.
4+
*/
5+
16
import semmle.code.cpp.exprs.Expr
27
import semmle.code.cpp.Variable
38
import semmle.code.cpp.Enum

cpp/ql/src/semmle/code/cpp/exprs/ArithmeticOperation.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Provides classes for modeling arithmetic operations such as `+`, `-`, `*`
3+
* and `++`.
4+
*/
5+
16
import semmle.code.cpp.exprs.Expr
27

38
/**

cpp/ql/src/semmle/code/cpp/exprs/BitwiseOperation.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Provides classes for modeling bitwise operations such as `~`, `<<`, `&` and
3+
* `|`.
4+
*/
5+
16
import semmle.code.cpp.exprs.Expr
27

38
/**

cpp/ql/src/semmle/code/cpp/exprs/BuiltInOperations.qll

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1+
/**
2+
* Provides classes for modeling built-in operations. Built-in operations are
3+
* typically compiler specific and are used by libraries and generated code.
4+
*/
5+
16
import semmle.code.cpp.exprs.Expr
27

38
/**
4-
* A C/C++ builtin operation. This is the root QL class encompassing
9+
* A C/C++ built-in operation. This is the root QL class encompassing
510
* built-in functionality.
611
*/
712
class BuiltInOperation extends Expr, @builtin_op {

cpp/ql/src/semmle/code/cpp/exprs/Call.qll

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Provides classes for modeling call expressions including direct calls to
3+
* functions, constructor and destructor calls, and calls made through function
4+
* pointers.
5+
*/
6+
17
import semmle.code.cpp.exprs.Expr
28
import semmle.code.cpp.Function
39
private import semmle.code.cpp.dataflow.EscapesTree

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

@@ -656,6 +661,9 @@ class UuidofOperator extends Expr, @uuidof {
656661
* ```
657662
*/
658663
class TypeidOperator extends Expr, @type_id {
664+
/**
665+
* Gets the type that is returned by this typeid expression.
666+
*/
659667
Type getResultType() { typeid_bind(underlyingElement(this), unresolveElement(result)) }
660668

661669
/**

cpp/ql/src/semmle/code/cpp/exprs/ComparisonOperation.qll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Provides classes for modeling comparisons such as `==`, `!=` and `<`.
3+
*/
4+
15
import semmle.code.cpp.exprs.Expr
26

37
/**

cpp/ql/src/semmle/code/cpp/exprs/Expr.qll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Provides classes modeling C/C++ expressions.
3+
*/
4+
15
import semmle.code.cpp.Element
26
private import semmle.code.cpp.Enclosing
37
private import semmle.code.cpp.internal.ResolveClass

0 commit comments

Comments
 (0)