Skip to content

Commit 8da2f0b

Browse files
committed
C++: clarify folds only appear in uninstantiated templates
1 parent 4e39862 commit 8da2f0b

File tree

1 file changed

+2
-1
lines changed
  • cpp/ql/src/semmle/code/cpp/exprs

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,8 @@ class NoExceptExpr extends Expr, @noexceptexpr {
965965
}
966966

967967
/**
968-
* A C++17 fold expression.
968+
* A C++17 fold expression. This will only appear in an uninstantiated template; any instantiations
969+
* of the template will instead contain the sequence of expressions given by expanding the fold.
969970
*/
970971
class FoldExpr extends Expr, @foldexpr {
971972
override string toString() {

0 commit comments

Comments
 (0)