Skip to content

Commit a27b1ee

Browse files
committed
C++: Improve ErrorExpr documentation to match current practise
1 parent 5a59354 commit a27b1ee

File tree

1 file changed

+5
-2
lines changed
  • cpp/ql/lib/semmle/code/cpp/exprs

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,9 +596,12 @@ class ParenthesisExpr extends Conversion, @parexpr {
596596
}
597597

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

0 commit comments

Comments
 (0)