Skip to content

Commit

Permalink
[lldb][NFC] Format lldb/include/lldb/Symbol/Type.h
Browse files Browse the repository at this point in the history
Reviewed By: teemperor, JDevlieghere, dblaikie

Differential Revision: https://reviews.llvm.org/D113604
  • Loading branch information
ljmf00 committed Dec 14, 2021
1 parent ebf5497 commit efefc4e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 21 deletions.
44 changes: 24 additions & 20 deletions lldb/include/lldb/Symbol/Type.h
Expand Up @@ -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
};

Expand Down Expand Up @@ -197,7 +201,7 @@ class Type : public std::enable_shared_from_this<Type>, public UserID {

// 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);
Expand Down Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion lldb/source/Symbol/Type.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit efefc4e

Please sign in to comment.