core: Add clang-tidy (#8664)
This adds a .clang-tidy file for us. It's not a strict requirement to be compliant, but I tuned it to be alright.
This commit is contained in:
parent
b1e5cc66bd
commit
8bbeee1173
118 changed files with 720 additions and 679 deletions
|
|
@ -41,7 +41,7 @@
|
|||
} while (0)
|
||||
|
||||
class IWaylandProtocol;
|
||||
struct IWaylandProtocolDestroyWrapper {
|
||||
struct SIWaylandProtocolDestroyWrapper {
|
||||
wl_listener listener;
|
||||
IWaylandProtocol* parent = nullptr;
|
||||
};
|
||||
|
|
@ -51,13 +51,13 @@ class IWaylandProtocol {
|
|||
IWaylandProtocol(const wl_interface* iface, const int& ver, const std::string& name);
|
||||
virtual ~IWaylandProtocol();
|
||||
|
||||
virtual void onDisplayDestroy();
|
||||
virtual void removeGlobal();
|
||||
virtual wl_global* getGlobal();
|
||||
virtual void onDisplayDestroy();
|
||||
virtual void removeGlobal();
|
||||
virtual wl_global* getGlobal();
|
||||
|
||||
virtual void bindManager(wl_client* client, void* data, uint32_t ver, uint32_t id) = 0;
|
||||
virtual void bindManager(wl_client* client, void* data, uint32_t ver, uint32_t id) = 0;
|
||||
|
||||
IWaylandProtocolDestroyWrapper m_liDisplayDestroy;
|
||||
SIWaylandProtocolDestroyWrapper m_liDisplayDestroy;
|
||||
|
||||
private:
|
||||
std::string m_szName;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue