[Lldb-commits] [PATCH] D61746: [Breakpoint] Make breakpoint language agnostic

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu May 9 11:31:57 PDT 2019


JDevlieghere added inline comments.


================
Comment at: include/lldb/Target/Language.h:197
+  virtual void
+  GetVariantMethodNames(ConstString method_name,
+                        std::vector<ConstString> &variant_names) const {
----------------
GetMethodNameVariants? 


================
Comment at: source/Breakpoint/BreakpointResolverName.cpp:237
+
+  Language *lang = Language::FindPlugin(m_language);
+  if (!lang) {
----------------
You could write this as 

```
  if (Language *lang = Language::FindPlugin(m_language)) {
    add_variant_funcs(lang);
  } else {
    // Most likely m_language is eLanguageTypeUnknown. We check each language for
    // possible variants or more qualified names and create lookups for those as
    // well.
    Language::ForEach(add_variant_funcs);
  }
```


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

https://reviews.llvm.org/D61746





More information about the lldb-commits mailing list