Clang: reconcile struct and class declarations
This commit is contained in:
parent
829b629a0c
commit
30700e179a
|
@ -17,7 +17,7 @@
|
|||
/* base-internal includes */
|
||||
#include <base/internal/region_map_mmap.h>
|
||||
|
||||
namespace Genode { class Core_region_map; }
|
||||
namespace Genode { struct Core_region_map; }
|
||||
|
||||
|
||||
struct Genode::Core_region_map : Region_map_mmap
|
||||
|
|
|
@ -27,21 +27,29 @@
|
|||
|
||||
namespace Genode {
|
||||
|
||||
struct Pager_object
|
||||
class Platform_thread;
|
||||
|
||||
class Pager_object
|
||||
{
|
||||
Thread_capability _thread_cap { };
|
||||
Signal_context_capability _sigh { };
|
||||
friend class Platform_thread;
|
||||
|
||||
virtual ~Pager_object() { }
|
||||
protected:
|
||||
|
||||
void exception_handler(Signal_context_capability sigh) { _sigh = sigh; }
|
||||
Thread_capability _thread_cap { };
|
||||
Signal_context_capability _sigh { };
|
||||
|
||||
/**
|
||||
* Remember thread cap so that rm_session can tell thread that
|
||||
* rm_client is gone.
|
||||
*/
|
||||
Thread_capability thread_cap() const { return _thread_cap; }
|
||||
void thread_cap(Thread_capability cap) { _thread_cap = cap; }
|
||||
public:
|
||||
|
||||
virtual ~Pager_object() { }
|
||||
|
||||
void exception_handler(Signal_context_capability sigh) { _sigh = sigh; }
|
||||
|
||||
/**
|
||||
* Remember thread cap so that rm_session can tell thread that
|
||||
* rm_client is gone.
|
||||
*/
|
||||
Thread_capability thread_cap() const { return _thread_cap; }
|
||||
void thread_cap(Thread_capability cap) { _thread_cap = cap; }
|
||||
};
|
||||
|
||||
struct Pager_entrypoint
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
namespace Genode {
|
||||
struct Platform_pd;
|
||||
struct Platform_thread;
|
||||
class Platform_thread;
|
||||
}
|
||||
|
||||
struct Genode::Platform_pd
|
||||
|
|
|
@ -30,8 +30,6 @@
|
|||
|
||||
namespace Genode {
|
||||
|
||||
class Platform_thread;
|
||||
|
||||
/*
|
||||
* We hold all Platform_thread objects in a list in order to be able to
|
||||
* reflect SIGCHLD as exception signals. When a SIGCHILD occurs, we
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
namespace Genode {
|
||||
|
||||
class Local_session;
|
||||
struct Local_session;
|
||||
class Local_parent;
|
||||
}
|
||||
|
||||
|
|
|
@ -14,6 +14,6 @@
|
|||
#ifndef _INCLUDE__BASE__INTERNAL__NATIVE_UTCB_H_
|
||||
#define _INCLUDE__BASE__INTERNAL__NATIVE_UTCB_H_
|
||||
|
||||
namespace Genode { struct Native_utcb { }; }
|
||||
namespace Genode { class Native_utcb { }; }
|
||||
|
||||
#endif /* _INCLUDE__BASE__INTERNAL__NATIVE_UTCB_H_ */
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
namespace Genode {
|
||||
|
||||
class Signal_context_component;
|
||||
struct Signal_context_component;
|
||||
class Signal_source_component;
|
||||
}
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include <base/stdint.h>
|
||||
|
||||
namespace Genode { struct Native_utcb; }
|
||||
namespace Genode { class Native_utcb; }
|
||||
|
||||
class Genode::Native_utcb
|
||||
{
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
namespace Genode {
|
||||
struct Child_policy;
|
||||
struct Child;
|
||||
class Child;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -21,9 +21,9 @@
|
|||
|
||||
namespace Genode {
|
||||
|
||||
class Microseconds;
|
||||
class Milliseconds;
|
||||
class Duration;
|
||||
struct Microseconds;
|
||||
struct Milliseconds;
|
||||
struct Duration;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -21,9 +21,9 @@
|
|||
#include <base/thread.h>
|
||||
|
||||
namespace Genode {
|
||||
class Startup;
|
||||
struct Startup;
|
||||
class Entrypoint;
|
||||
class Env;
|
||||
struct Env;
|
||||
}
|
||||
|
||||
|
||||
|
@ -138,7 +138,7 @@ class Genode::Entrypoint : Noncopyable
|
|||
void _handle_stop_signal_proxy() { _stop_signal_proxy = true; }
|
||||
Constructible<Genode::Signal_handler<Entrypoint> > _stop_signal_proxy_handler { };
|
||||
|
||||
friend class Startup;
|
||||
friend struct Startup;
|
||||
|
||||
/**
|
||||
* Called by the startup code only
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
namespace Genode {
|
||||
|
||||
class Msgbuf_base;
|
||||
template <unsigned> class Msgbuf;
|
||||
template <unsigned> struct Msgbuf;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
namespace Genode {
|
||||
|
||||
class Local_connection_base;
|
||||
struct Local_connection_base;
|
||||
template <typename> class Local_connection;
|
||||
}
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include <base/cancelable_lock.h>
|
||||
|
||||
namespace Genode { class Lock; }
|
||||
namespace Genode { struct Lock; }
|
||||
|
||||
|
||||
struct Genode::Lock : Cancelable_lock
|
||||
|
|
|
@ -37,7 +37,7 @@ class Genode::Native_capability
|
|||
* Forward declaration of the platform-specific internal capability
|
||||
* representation
|
||||
*/
|
||||
class Data;
|
||||
struct Data;
|
||||
|
||||
private:
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ class Genode::Object_pool : Interface, Noncopyable
|
|||
|
||||
friend class Object_pool;
|
||||
friend class Avl_tree<Entry>;
|
||||
friend class Avl_node<Entry>;
|
||||
friend struct Avl_node<Entry>;
|
||||
|
||||
struct Entry_lock : Weak_object<Entry_lock>, Noncopyable
|
||||
{
|
||||
|
|
|
@ -106,7 +106,7 @@ struct Genode::Registry : private Registry_base
|
|||
{
|
||||
struct Element : Registry_base::Element
|
||||
{
|
||||
friend class Registry; /* allow 'for_each' to access '_obj' */
|
||||
friend struct Registry; /* allow 'for_each' to access '_obj' */
|
||||
|
||||
Element(Registry ®istry, T &obj)
|
||||
: Registry_base::Element(registry, &obj) { }
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
namespace Genode {
|
||||
|
||||
template <typename> struct Rpc_client;
|
||||
template <typename> class Rpc_client;
|
||||
|
||||
/**
|
||||
* Count capabilities of a RPC_FUNCTION which are out parameters.
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
namespace Genode {
|
||||
|
||||
class Ipc_server;
|
||||
struct Ipc_server;
|
||||
|
||||
template <typename, typename> class Rpc_dispatcher;
|
||||
class Rpc_object_base;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include <base/entrypoint.h>
|
||||
#include <session/session.h>
|
||||
|
||||
namespace Genode { template <typename, typename> struct Session_object; }
|
||||
namespace Genode { template <typename, typename> class Session_object; }
|
||||
|
||||
template <typename RPC_INTERFACE, typename SERVER = RPC_INTERFACE>
|
||||
class Genode::Session_object : private Ram_quota_guard,
|
||||
|
|
|
@ -24,7 +24,7 @@ namespace Genode {
|
|||
|
||||
class Shared_object;
|
||||
struct Address_info;
|
||||
struct Dynamic_linker;
|
||||
class Dynamic_linker;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -29,17 +29,17 @@ namespace Genode {
|
|||
|
||||
class Entrypoint;
|
||||
class Rpc_entrypoint;
|
||||
class Signal_source;
|
||||
struct Signal_source;
|
||||
|
||||
class Signal_receiver;
|
||||
class Signal_context;
|
||||
class Signal_context_registry;
|
||||
class Signal_transmitter;
|
||||
class Signal;
|
||||
class Signal_dispatcher_base;
|
||||
struct Signal_dispatcher_base;
|
||||
|
||||
template <typename, typename> class Signal_handler;
|
||||
template <typename, typename> class Io_signal_handler;
|
||||
template <typename, typename> struct Io_signal_handler;
|
||||
|
||||
typedef Capability<Signal_context> Signal_context_capability;
|
||||
}
|
||||
|
@ -97,7 +97,7 @@ class Genode::Signal
|
|||
*/
|
||||
Signal(Data data);
|
||||
|
||||
friend class Kernel::Signal_receiver;
|
||||
friend struct Kernel::Signal_receiver;
|
||||
friend class Signal_receiver;
|
||||
friend class Signal_context;
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ class Genode::Slab : public Allocator
|
|||
{
|
||||
private:
|
||||
|
||||
struct Block;
|
||||
class Block;
|
||||
struct Entry;
|
||||
|
||||
size_t const _slab_size; /* size of one slab entry */
|
||||
|
|
|
@ -23,11 +23,11 @@
|
|||
#include <cpu_session/cpu_session.h> /* for 'Thread_capability' type */
|
||||
|
||||
namespace Genode {
|
||||
struct Native_utcb;
|
||||
class Native_utcb;
|
||||
struct Native_thread;
|
||||
class Thread;
|
||||
class Stack;
|
||||
class Env;
|
||||
struct Env;
|
||||
template <unsigned> class Thread_deprecated;
|
||||
}
|
||||
|
||||
|
@ -161,7 +161,7 @@ class Genode::Thread
|
|||
*/
|
||||
Tls _tls { };
|
||||
|
||||
friend class Tls::Base;
|
||||
friend struct Tls::Base;
|
||||
|
||||
/**
|
||||
* Hook for platform-specific constructor supplements
|
||||
|
|
|
@ -20,8 +20,8 @@
|
|||
namespace Genode { namespace Trace {
|
||||
|
||||
class Control;
|
||||
class Policy_module;
|
||||
class Logger;
|
||||
struct Policy_module;
|
||||
struct Logger;
|
||||
} }
|
||||
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ namespace Genode {
|
|||
class Signal_context;
|
||||
class Rpc_object_base;
|
||||
|
||||
namespace Trace { class Policy_module; }
|
||||
namespace Trace { struct Policy_module; }
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ namespace Genode { namespace Trace {
|
|||
struct Policy_id;
|
||||
struct Subject_id;
|
||||
struct Execution_time;
|
||||
struct Subject_info;
|
||||
class Subject_info;
|
||||
} }
|
||||
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
namespace Genode
|
||||
{
|
||||
class Cpu_session;
|
||||
struct Cpu_session;
|
||||
typedef Capability<Cpu_session> Cpu_session_capability;
|
||||
}
|
||||
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
namespace Genode {
|
||||
struct Pd_session;
|
||||
struct Pd_session_client;
|
||||
struct Parent;
|
||||
struct Signal_context;
|
||||
class Parent;
|
||||
class Signal_context;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include <base/connection.h>
|
||||
#include <base/log.h>
|
||||
|
||||
namespace Genode { class Rom_connection; }
|
||||
namespace Genode { struct Rom_connection; }
|
||||
|
||||
|
||||
struct Genode::Rom_connection : Connection<Rom_session>,
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
namespace Genode {
|
||||
|
||||
class Single_client;
|
||||
class Multiple_clients;
|
||||
struct Multiple_clients;
|
||||
template <typename, typename POLICY = Multiple_clients> class Root_component;
|
||||
}
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
namespace Genode {
|
||||
|
||||
class Time_source;
|
||||
struct Time_source;
|
||||
class Timeout_scheduler;
|
||||
class Timeout;
|
||||
class Alarm_timeout_scheduler;
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
namespace Timer
|
||||
{
|
||||
class Connection;
|
||||
template <typename> class Periodic_timeout;
|
||||
template <typename> struct Periodic_timeout;
|
||||
template <typename> class One_shot_timeout;
|
||||
}
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
namespace Genode {
|
||||
|
||||
class Avl_node_base;
|
||||
template <typename> class Avl_node;
|
||||
template <typename> struct Avl_node;
|
||||
template <typename> class Avl_tree;
|
||||
}
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
namespace Genode {
|
||||
|
||||
class Mmio_plain_access;
|
||||
class Mmio;
|
||||
struct Mmio;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
namespace Genode {
|
||||
template<typename> class Reconstructible;
|
||||
template<typename> class Constructible;
|
||||
template<typename> struct Constructible;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#include <vm_session/handler.h>
|
||||
#include <base/rpc_client.h>
|
||||
|
||||
namespace Genode { struct Vm_session_client; class Allocator; class Vm_state; }
|
||||
namespace Genode { struct Vm_session_client; struct Allocator; struct Vm_state; }
|
||||
|
||||
/**
|
||||
* Client-side VM session interface
|
||||
|
|
|
@ -17,14 +17,14 @@
|
|||
#include <base/signal.h>
|
||||
|
||||
namespace Genode {
|
||||
class Vm_state;
|
||||
struct Vm_state;
|
||||
class Vm_handler_base;
|
||||
template <typename, typename> class Vm_handler;
|
||||
}
|
||||
|
||||
class Genode::Vm_handler_base : public Signal_dispatcher_base
|
||||
{
|
||||
friend class Vm_session_client;
|
||||
friend struct Vm_session_client;
|
||||
|
||||
protected:
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ namespace Genode { struct Address_space; }
|
|||
struct Genode::Address_space : private Weak_object<Address_space>,
|
||||
public Interface
|
||||
{
|
||||
friend class Locked_ptr<Address_space>;
|
||||
friend struct Locked_ptr<Address_space>;
|
||||
|
||||
struct Core_local_addr { addr_t value; };
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
/* base-internal includes */
|
||||
#include <base/internal/rpc_obj_key.h>
|
||||
|
||||
namespace Genode { class Cap_sel; class Pd_session; }
|
||||
namespace Genode { class Cap_sel; struct Pd_session; }
|
||||
|
||||
|
||||
namespace Genode { namespace Capability_space {
|
||||
|
|
|
@ -383,7 +383,7 @@ class Genode::Region_map_component : private Weak_object<Region_map_component>,
|
|||
~Region_map_component();
|
||||
|
||||
using Weak_object<Region_map_component>::weak_ptr;
|
||||
friend class Locked_ptr<Region_map_component>;
|
||||
friend struct Locked_ptr<Region_map_component>;
|
||||
|
||||
bool equals(Weak_ptr<Region_map_component> const &other)
|
||||
{
|
||||
|
@ -393,7 +393,7 @@ class Genode::Region_map_component : private Weak_object<Region_map_component>,
|
|||
void address_space(Address_space *space) { _address_space = space; }
|
||||
Address_space *address_space() { return _address_space; }
|
||||
|
||||
class Fault_area;
|
||||
struct Fault_area;
|
||||
|
||||
/**
|
||||
* Register fault
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
namespace Genode { namespace Trace {
|
||||
class Source;
|
||||
class Source_owner;
|
||||
struct Source_owner;
|
||||
class Source_registry;
|
||||
|
||||
/**
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include <util/retry.h>
|
||||
#include <pd_session/client.h>
|
||||
|
||||
namespace Genode { class Expanding_pd_session_client; }
|
||||
namespace Genode { struct Expanding_pd_session_client; }
|
||||
|
||||
|
||||
struct Genode::Expanding_pd_session_client : Pd_session_client
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
/* base-internal includes */
|
||||
#include <base/internal/upgradeable_client.h>
|
||||
|
||||
namespace Genode { class Expanding_region_map_client; }
|
||||
namespace Genode { struct Expanding_region_map_client; }
|
||||
|
||||
|
||||
struct Genode::Expanding_region_map_client : Region_map_client
|
||||
|
|
|
@ -18,9 +18,9 @@
|
|||
|
||||
namespace Genode {
|
||||
|
||||
class Region_map;
|
||||
class Ram_allocator;
|
||||
class Env;
|
||||
struct Region_map;
|
||||
struct Ram_allocator;
|
||||
struct Env;
|
||||
class Local_session_id_space;
|
||||
|
||||
extern Region_map *env_stack_area_region_map;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include <base/stdint.h>
|
||||
#include <base/output.h>
|
||||
|
||||
namespace Genode { struct Rpc_obj_key; }
|
||||
namespace Genode { class Rpc_obj_key; }
|
||||
|
||||
|
||||
class Genode::Rpc_obj_key
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include <pd_session/pd_session.h>
|
||||
#include <signal_source/signal_source.h>
|
||||
|
||||
namespace Genode { class Signal_source_client; }
|
||||
namespace Genode { struct Signal_source_client; }
|
||||
|
||||
struct Genode::Signal_source_client : Rpc_client<Signal_source>
|
||||
{
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#ifndef _INCLUDE__SIGNAL_SOURCE__SIGNAL_SOURCE_H_
|
||||
#define _INCLUDE__SIGNAL_SOURCE__SIGNAL_SOURCE_H_
|
||||
|
||||
namespace Genode { class Signal_source; }
|
||||
namespace Genode { struct Signal_source; }
|
||||
|
||||
/**
|
||||
* Blocking part of the PD-session interface
|
||||
|
|
|
@ -31,7 +31,7 @@ namespace Linker {
|
|||
struct Debug;
|
||||
struct Link_map;
|
||||
|
||||
struct Object;
|
||||
class Object;
|
||||
void dump_link_map(Object const &);
|
||||
}
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
namespace Linker {
|
||||
struct Hash_table;
|
||||
struct Dynamic;
|
||||
class Dynamic;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -33,10 +33,10 @@
|
|||
*/
|
||||
namespace Linker {
|
||||
class Object;
|
||||
struct Root_object;
|
||||
struct Dependency;
|
||||
struct Elf_object;
|
||||
struct Dynamic;
|
||||
class Root_object;
|
||||
class Dependency;
|
||||
class Elf_object;
|
||||
class Dynamic;
|
||||
|
||||
typedef void (*Func)(void);
|
||||
|
||||
|
|
|
@ -33,13 +33,13 @@
|
|||
using namespace Linker;
|
||||
|
||||
namespace Linker {
|
||||
struct Dynamic;
|
||||
class Dynamic;
|
||||
struct Ld;
|
||||
struct Ld_vtable;
|
||||
struct Binary;
|
||||
struct Link_map;
|
||||
struct Debug;
|
||||
struct Config;
|
||||
class Config;
|
||||
};
|
||||
|
||||
static Binary *binary_ptr = nullptr;
|
||||
|
|
|
@ -108,7 +108,7 @@ class Wm::Nitpicker::View : private Genode::Weak_object<View>,
|
|||
private:
|
||||
|
||||
friend class Genode::Weak_ptr<View>;
|
||||
friend class Genode::Locked_ptr<View>;
|
||||
friend struct Genode::Locked_ptr<View>;
|
||||
|
||||
protected:
|
||||
|
||||
|
|
|
@ -83,7 +83,7 @@ class Nitpicker::View_component : private Same_buffer_list_elem,
|
|||
|
||||
friend class View_stack;
|
||||
friend class Session_component;
|
||||
friend class Locked_ptr<View_component>;
|
||||
friend struct Locked_ptr<View_component>;
|
||||
|
||||
/*
|
||||
* Noncopyable
|
||||
|
|
Loading…
Reference in New Issue