C++: Address review comments about the comments

This commit is contained in:
Jonas Jensen
2019-05-15 14:55:26 +02:00
parent b52015a584
commit d820fc9cd2
2 changed files with 5 additions and 2 deletions

View File

@@ -93,7 +93,7 @@ abstract class Declaration extends Locatable, @declaration {
* component of `namespaceQualifier`, no declaring type, and a base name of
* `baseName`.
*
* See the 3-argument `hasQualifiedName` for more examples.
* See the 3-argument `hasQualifiedName` for examples.
*/
predicate hasQualifiedName(string namespaceQualifier, string baseName) {
this.hasQualifiedName(namespaceQualifier, "", baseName)

View File

@@ -230,11 +230,14 @@ class MemberVariable extends Variable, @membervariable {
override string getName() { membervariables(this, _, result) }
}
// Unlike the usual `EnumConstant`, this one doesn't have a
// `getDeclaringType()`. This simplifies the recursive computation of type
// qualifier names since it can assume that any declaration with a
// `getDeclaringType()` should use that type in its type qualifier name.
class EnumConstant extends Declaration, @enumconstant {
override string getName() { enumconstants(this, _, _, _, result, _) }
UserType getDeclaringEnum() { enumconstants(this, result, _, _, _, _) }
// Unlike the usual `EnumConstant`, this one doesn't have a `getDeclaringType()`.
}
class Function extends Declaration, @function {