[PATCH] D102663: Bug 49633 - Added warning for static inline global and namespaced declarations for c++17+
Erich Keane via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri May 21 05:55:23 PDT 2021
erichkeane added inline comments.
================
Comment at: clang/lib/Sema/SemaDecl.cpp:7127
<< FixItHint::CreateRemoval(D.getDeclSpec().getInlineSpecLoc());
+ } else if (SC == SC_Static && DC->isFileContext() &&
+ getLangOpts().CPlusPlus17) {
----------------
First, what about this is C++17 specific? The inline and static relationship is older than C++17, right?
Also, are you sure that the warning/stuff in the 'else' isn't still valuable?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102663/new/
https://reviews.llvm.org/D102663
More information about the cfe-commits
mailing list