ClangASTType m_clang_type;
struct Flags {
- ResolveState clang_type_resolve_state : 2;
+ // clang_type_resolve_state is a ResolveState enum
+ // using unsigned type here to work around a very noisy gcc warning
+ unsigned clang_type_resolve_state : 2;
bool is_complete_objc_class : 1;
} m_flags;
m_decl (decl),
m_clang_type (clang_type)
{
- m_flags.clang_type_resolve_state = (clang_type ? clang_type_resolve_state : eResolveStateUnresolved);
+ m_flags.SetResolveState(clang_type ? clang_type_resolve_state : eResolveStateUnresolved);
m_flags.is_complete_objc_class = false;
}
m_decl (),
m_clang_type ()
{
- m_flags.clang_type_resolve_state = eResolveStateUnresolved;
+ m_flags.SetResolveState(eResolveStateUnresolved);
m_flags.is_complete_objc_class = false;
}
if (encoding_clang_type.IsValid())
{
m_clang_type = encoding_clang_type;
- m_flags.clang_type_resolve_state = encoding_type->m_flags.clang_type_resolve_state;
+ m_flags.SetResolveState(encoding_type->m_flags.clang_type_resolve_state);
}
}
break;
// Check if we have a forward reference to a class/struct/union/enum?
if (m_clang_type.IsValid() && m_flags.clang_type_resolve_state < clang_type_resolve_state)
{
- m_flags.clang_type_resolve_state = eResolveStateFull;
+ m_flags.SetResolveState(eResolveStateFull);
if (!m_clang_type.IsDefined ())
{
// We have a forward declaration, we need to resolve it to a complete definition.
std::unique_ptr<Socket> listening_socket_up;
Socket *socket = nullptr;
- printf ("Listening for a connection from %s...\n", listen_host_port.c_str());
const bool children_inherit_listen_socket = false;
// the test suite makes many connections in parallel, let's not miss any.
exit(socket_error);
}
listening_socket_up.reset(socket);
+ printf ("Listening for a connection from %u...\n", listening_socket_up->GetLocalPortNumber());
do {
GDBRemoteCommunicationServerPlatform platform;