[PATCH] D93095: Introduce -Wreserved-identifier
serge via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 19 13:40:20 PST 2021
serge-sans-paille updated this revision to Diff 317677.
serge-sans-paille added a comment.
As suggested by @aaron.ballman base the detection of top-level-ness on `Sema::LookupName` to avoid re-implementing the wheel.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93095/new/
https://reviews.llvm.org/D93095
Files:
clang/include/clang/Basic/DiagnosticGroups.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/include/clang/Sema/Sema.h
clang/lib/Sema/Sema.cpp
clang/lib/Sema/SemaDecl.cpp
clang/lib/Sema/SemaDeclCXX.cpp
clang/lib/Sema/SemaStmt.cpp
clang/lib/Sema/SemaTemplate.cpp
clang/test/Sema/reserved-identifier.c
clang/test/Sema/reserved-identifier.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93095.317677.patch
Type: text/x-patch
Size: 13406 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210119/bc01beea/attachment.bin>
More information about the cfe-commits
mailing list