[Lldb-commits] [PATCH] D108229: [lldb] Refactor Module::LookupInfo constructor

Alex Langford via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Aug 24 11:55:48 PDT 2021


bulbazord added inline comments.


================
Comment at: lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp:73
+  llvm::StringRef basename = method.GetBasename();
+  if (basename.empty()) {
+    if (CPlusPlusLanguage::ExtractContextAndIdentifier(
----------------
jingham wrote:
> The old code checked method.IsValid before pulling out the base name.  It seems sensible that an invalid MethodName would return an empty base name, but that does seem to rely a little on implicit behavior?  Not sure that's a big deal.
Yep, this does rely on implicit behavior. I don't think it's a huge deal, but it's easily changeable. :)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D108229/new/

https://reviews.llvm.org/D108229



More information about the lldb-commits mailing list