[PATCH] D77534: [clangd] DefineOutline: removes static token from static CXXMethodDecl
Nathan James via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 6 13:37:57 PDT 2020
njames93 marked 9 inline comments as done.
njames93 added inline comments.
================
Comment at: clang-tools-extra/clangd/refactor/tweaks/DefineOutline.cpp:294
+ if (isa<CXXMethodDecl>(FD) && cast<CXXMethodDecl>(FD)->isStatic())
+ DeleteKeyword(tok::kw_static, {FD->getBeginLoc(), FD->getLocation()});
----------------
kadircet wrote:
> sorry if I miscommunicated, I was trying to say that multiple `static` keywords are also allowed by clang. So we should be dropping all of them, as we do for `virtual`
Yeah sorry, I checked and it was rejected. I just realised I was checking against gcc...
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77534/new/
https://reviews.llvm.org/D77534
More information about the cfe-commits
mailing list