C++: Mention 'range-based for-loops' in the QLDoc for 'IRDeclarationEntry'.

This commit is contained in:
Mathias Vorreiter Pedersen
2022-09-06 10:40:01 +01:00
parent 10f962f341
commit 02c18e714b

View File

@@ -469,8 +469,10 @@ private module IRDeclarationEntries {
/**
* An entity that represents a declaration entry in the database.
*
* This class exists to work around the fact that `DeclStmt`s in
* template instantiations do not have `DeclarationEntry`s.
* This class exists to work around the fact that `DeclStmt`s in some cases
* do not have `DeclarationEntry`s. Currently, this is the case for:
* - `DeclStmt`s in template instantiations.
* - `DeclStmt`s that are generated by the desugaring of range-based for-loops.
*
* So instead, the IR works with `IRDeclarationEntry`s that synthesize missing
* `DeclarationEntry`s when there is no result for `DeclStmt::getDeclarationEntry`.