Skip to content

Commit e5907c8

Browse files
authored
[NFC] Fix hasQualifier comment (#90485)
operator bool from NestedNameSpecifierLoc and member function hasQualifier both do the same thing, returning true if the private data member Qualifier is not nullptr, so clearly one of the comments is wrong, and in this case it is the second one. fixes #90472
1 parent a5cc951 commit e5907c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/include/clang/AST/NestedNameSpecifier.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ class NestedNameSpecifierLoc {
266266
explicit operator bool() const { return Qualifier; }
267267

268268
/// Evaluates true when this nested-name-specifier location is
269-
/// empty.
269+
/// non-empty.
270270
bool hasQualifier() const { return Qualifier; }
271271

272272
/// Retrieve the nested-name-specifier to which this instance

0 commit comments

Comments
 (0)