Closed smcpeak closed 2 weeks ago
@llvm/issue-subscribers-clang-frontend
Author: Scott McPeak (smcpeak)
Hi!
This issue may be a good introductory issue for people new to working on LLVM. If you would like to work on this issue, your first steps are:
test/
create fine-grained testing targets, so you can e.g. use make check-clang-ast
to only run Clang's AST tests.git clang-format HEAD~1
to format your changes.If you have any further questions about this issue, don't hesitate to ask via a comment in the thread below.
@llvm/issue-subscribers-good-first-issue
Author: Scott McPeak (smcpeak)
The documentation for
clang::NestedNameSpecifierLoc::hasQualifier
says:However, this is wrong, as it should say that it evaluates to true when the NNS is not empty, as the name suggests. This can be seen by comparing its comment and implementation to that of
operator bool()
above it inNestedNameSpecifier.h
:They both do the same thing, returning
true
iff the private data memberQualifier
is notnullptr
, so clearly one of the comments is wrong, and in this case it is the second one.I see this issue in the latest version of Clang on the
main
branch on github at time of writing.(For clarity, I'm filing the issue, but I do not currently intend to submit a fix.)