[PATCH] D53847: [C++2a] P0634r3: Down with typename!
Alan Zhao via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 20 15:24:22 PDT 2022
ayzhao added inline comments.
================
Comment at: clang/include/clang/Sema/DeclSpec.h:1918
+ /// Lookup result of declarator, if any.
+ std::unique_ptr<LookupResult> PrevLookupResult;
+
----------------
shafik wrote:
> Why do we need this one shot previous lookup result? I am struggling to see the connection between `isDeclaratorFunctionLike(...)` and where we check `hasPrevLookupResult(...)` and why it matter.
Removed
================
Comment at: clang/lib/Sema/DeclSpec.cpp:1502-1504
+ LookupResult LR = std::move(*PrevLookupResult);
+ PrevLookupResult.reset();
+ return LR;
----------------
shafik wrote:
>
Ended up removing `PrevLookupResult` per my other comment.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D53847/new/
https://reviews.llvm.org/D53847
More information about the cfe-commits
mailing list