Prefer isa<> to dyn_cast<> when there only need a checking.
Details
Details
Diff Detail
Diff Detail
- Repository
- rCTE Clang Tools Extra
Event Timeline
clangd/AST.cpp | ||
---|---|---|
98 | isa<NamespaceDecl>(ND) also works. |
clangd/AST.cpp | ||
---|---|---|
98 | Thanks for the tips! I will update it latter. |
Comment Actions
Ah, sorry, landed a cleanup fixing the warnings (rL347539) before seeing this change.
But given that isa<> are still better than dyn_cast<>, this change might still be worth landing.
Comment Actions
We can land this change this time or do the cleaning job in other patches in the future, it's all up to you guys, the active clangd contributors :).
Comment Actions
Please land this, it's a useful cleanup.
Unless you'd prefer to not spend any more time on this, in which case I'd just land it for you :-)
isa<NamespaceDecl>(ND) also works.