mirror of
https://github.com/github/codeql.git
synced 2026-04-27 09:45:15 +02:00
C++: Address review comments about the comments
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user