[PATCH] D68896: PR43080: Do not build context-sensitive expressions during name classification.
Eli Friedman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 11 18:05:17 PDT 2019
efriedma added a comment.
Hmm, the ObjC changes were simpler than I expected. And you managed to avoid making changes to overload sets.
The changes related to IsAddressOfOperand are a nice simplification.
Would it make sense to always use ClassifyName from the parser, instead of using ActOnIdExpression?
================
Comment at: include/clang/Sema/Sema.h:1865
+ NC_DependentNonType,
+ NC_ContextIndependentExpr,
NC_NestedNameSpecifier,
----------------
This enum could probably use brief comments explaining what the different results mean.
================
Comment at: lib/Sema/SemaDecl.cpp:1191
+ return NameClassification::ContextIndependentExpr(
+ BuildDeclarationNameExpr(SS, Result, ADL));
+}
----------------
This doesn't depend on the context... because we're going to throw away the expression later anyway? I guess that makes sense.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68896/new/
https://reviews.llvm.org/D68896
More information about the cfe-commits
mailing list