diff options
Diffstat (limited to 'source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.h')
| -rw-r--r-- | source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.h | 21 | 
1 files changed, 5 insertions, 16 deletions
diff --git a/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.h b/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.h index be5cbae57de2..056cced2808a 100644 --- a/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.h +++ b/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.h @@ -19,8 +19,8 @@  #include "llvm/ADT/StringRef.h"  // Project includes -#include "lldb/Core/ConstString.h"  #include "lldb/Target/Language.h" +#include "lldb/Utility/ConstString.h"  #include "lldb/lldb-private.h"  namespace lldb_private { @@ -29,20 +29,13 @@ class CPlusPlusLanguage : public Language {  public:    class MethodName {    public: -    enum Type { -      eTypeInvalid, -      eTypeUnknownMethod, -      eTypeClassMethod, -      eTypeInstanceMethod -    }; -      MethodName()          : m_full(), m_basename(), m_context(), m_arguments(), m_qualifiers(), -          m_type(eTypeInvalid), m_parsed(false), m_parse_error(false) {} +          m_parsed(false), m_parse_error(false) {}      MethodName(const ConstString &s)          : m_full(s), m_basename(), m_context(), m_arguments(), m_qualifiers(), -          m_type(eTypeInvalid), m_parsed(false), m_parse_error(false) {} +          m_parsed(false), m_parse_error(false) {}      void Clear(); @@ -51,13 +44,9 @@ public:          Parse();        if (m_parse_error)          return false; -      if (m_type == eTypeInvalid) -        return false;        return (bool)m_full;      } -    Type GetType() const { return m_type; } -      const ConstString &GetFullName() const { return m_full; }      std::string GetScopeQualifiedName(); @@ -72,6 +61,7 @@ public:    protected:      void Parse(); +    bool TrySimplifiedParse();      ConstString m_full; // Full name:                          // "lldb::SBTarget::GetBreakpointAtIndex(unsigned int) @@ -80,7 +70,6 @@ public:      llvm::StringRef m_context;    // Decl context: "lldb::SBTarget"      llvm::StringRef m_arguments;  // Arguments:    "(unsigned int)"      llvm::StringRef m_qualifiers; // Qualifiers:   "const" -    Type m_type;      bool m_parsed;      bool m_parse_error;    }; @@ -121,7 +110,7 @@ public:    // If the name is a lone C identifier (e.g. C) or a qualified C identifier    // (e.g. A::B::C) it will return true,    // and identifier will be the identifier (C and C respectively) and the -  // context will be "" and "A::B::" respectively. +  // context will be "" and "A::B" respectively.    // If the name fails the heuristic matching for a qualified or unqualified    // C/C++ identifier, then it will return false    // and identifier and context will be unchanged.  | 
