[PATCH] D118120: [C++20] [Modules] Only check decls under namespace scope in CheckRedeclarationExported
Chuanqi Xu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 25 03:21:53 PST 2022
ChuanqiXu added inline comments.
================
Comment at: clang/lib/Sema/SemaDecl.cpp:1643-1648
+ if (!New->getLexicalDeclContext()
+ ->getNonTransparentContext()
+ ->isFileContext() ||
+ !Old->getLexicalDeclContext()
+ ->getNonTransparentContext()
+ ->isFileContext())
----------------
This is formatted by clang-format, the original may be too long:
```
if (!New->getLexicalDeclContext()->getNonTransparentContext()->isFileContext() ||
...
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D118120/new/
https://reviews.llvm.org/D118120
More information about the cfe-commits
mailing list