diff options
author | Luís Ferreira <contact@lsferreira.net> | 2021-12-14 19:31:09 +0000 |
---|---|---|
committer | Luís Ferreira <contact@lsferreira.net> | 2021-12-14 19:31:18 +0000 |
commit | efefc4ee3b25ca180e3be84491f19218d995c788 (patch) | |
tree | 3f379f555cda00624f01c2f9b23501702d45a258 | |
parent | ebf5497b269f5769b53320dd81290714642e4306 (diff) | |
download | llvm-efefc4ee3b25ca180e3be84491f19218d995c788.zip llvm-efefc4ee3b25ca180e3be84491f19218d995c788.tar.gz llvm-efefc4ee3b25ca180e3be84491f19218d995c788.tar.bz2 |
[lldb][NFC] Format lldb/include/lldb/Symbol/Type.h
Reviewed By: teemperor, JDevlieghere, dblaikie
Differential Revision: https://reviews.llvm.org/D113604
-rw-r--r-- | lldb/include/lldb/Symbol/Type.h | 44 | ||||
-rw-r--r-- | lldb/source/Symbol/Type.cpp | 2 |
2 files changed, 25 insertions, 21 deletions
diff --git a/lldb/include/lldb/Symbol/Type.h b/lldb/include/lldb/Symbol/Type.h index 9e671a5..6f89814 100644 --- a/lldb/include/lldb/Symbol/Type.h +++ b/lldb/include/lldb/Symbol/Type.h @@ -67,23 +67,27 @@ class Type : public std::enable_shared_from_this<Type>, public UserID { public: enum EncodingDataType { eEncodingInvalid, - eEncodingIsUID, ///< This type is the type whose UID is m_encoding_uid - eEncodingIsConstUID, ///< This type is the type whose UID is m_encoding_uid - /// with the const qualifier added - eEncodingIsRestrictUID, ///< This type is the type whose UID is - /// m_encoding_uid with the restrict qualifier added - eEncodingIsVolatileUID, ///< This type is the type whose UID is - /// m_encoding_uid with the volatile qualifier added - eEncodingIsTypedefUID, ///< This type is pointer to a type whose UID is - /// m_encoding_uid - eEncodingIsPointerUID, ///< This type is pointer to a type whose UID is - /// m_encoding_uid - eEncodingIsLValueReferenceUID, ///< This type is L value reference to a type - /// whose UID is m_encoding_uid - eEncodingIsRValueReferenceUID, ///< This type is R value reference to a type - /// whose UID is m_encoding_uid, - eEncodingIsAtomicUID, ///< This type is the type whose UID is - /// m_encoding_uid as an atomic type. + /// This type is the type whose UID is m_encoding_uid. + eEncodingIsUID, + /// This type is the type whose UID is m_encoding_uid with the const + /// qualifier added. + eEncodingIsConstUID, + /// This type is the type whose UID is m_encoding_uid with the restrict + /// qualifier added. + eEncodingIsRestrictUID, + /// This type is the type whose UID is m_encoding_uid with the volatile + /// qualifier added. + eEncodingIsVolatileUID, + /// This type is pointer to a type whose UID is m_encoding_uid. + eEncodingIsTypedefUID, + /// This type is pointer to a type whose UID is m_encoding_uid. + eEncodingIsPointerUID, + /// This type is L value reference to a type whose UID is m_encoding_uid. + eEncodingIsLValueReferenceUID, + /// This type is R value reference to a type whose UID is m_encoding_uid. + eEncodingIsRValueReferenceUID, + /// This type is the type whose UID is m_encoding_uid as an atomic type. + eEncodingIsAtomicUID, eEncodingIsSyntheticUID }; @@ -197,7 +201,7 @@ public: // From a fully qualified typename, split the type into the type basename and // the remaining type scope (namespaces/classes). - static bool GetTypeScopeAndBasename(const llvm::StringRef& name, + static bool GetTypeScopeAndBasename(llvm::StringRef name, llvm::StringRef &scope, llvm::StringRef &basename, lldb::TypeClass &type_class); @@ -473,8 +477,8 @@ class TypeEnumMemberImpl { public: TypeEnumMemberImpl() : m_integer_type_sp(), m_name("<invalid>"), m_value() {} - TypeEnumMemberImpl(const lldb::TypeImplSP &integer_type_sp, - ConstString name, const llvm::APSInt &value); + TypeEnumMemberImpl(const lldb::TypeImplSP &integer_type_sp, ConstString name, + const llvm::APSInt &value); TypeEnumMemberImpl(const TypeEnumMemberImpl &rhs) = default; diff --git a/lldb/source/Symbol/Type.cpp b/lldb/source/Symbol/Type.cpp index 5b4169d..d6c82ed 100644 --- a/lldb/source/Symbol/Type.cpp +++ b/lldb/source/Symbol/Type.cpp @@ -662,7 +662,7 @@ ConstString Type::GetQualifiedName() { return GetForwardCompilerType().GetTypeName(); } -bool Type::GetTypeScopeAndBasename(const llvm::StringRef& name, +bool Type::GetTypeScopeAndBasename(llvm::StringRef name, llvm::StringRef &scope, llvm::StringRef &basename, TypeClass &type_class) { |