Skip to content

Commit

Permalink
C++: Improve ErrorExpr documentation to match current practise
Browse files Browse the repository at this point in the history
  • Loading branch information
jketema committed Jul 29, 2022
1 parent 5a59354 commit a27b1ee
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cpp/ql/lib/semmle/code/cpp/exprs/Expr.qll
Original file line number Diff line number Diff line change
Expand Up @@ -596,9 +596,12 @@ class ParenthesisExpr extends Conversion, @parexpr {
}

/**
* A C/C++ expression that has not been resolved.
* A C/C++ expression that could not be resolved, or that can no longer be
* represented due to a database upgrade or downgrade.
*
* It is assigned `ErroneousType` as its type.
* If the expression could not be resolved, it has type `ErroneousType`. In the
* case of a database upgrade or downgrade, the original type from before the
* upgrade or downgrade is kept if that type can be represented.
*/
class ErrorExpr extends Expr, @errorexpr {
override string toString() { result = "<error expr>" }
Expand Down

0 comments on commit a27b1ee

Please sign in to comment.