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
|
|
@ -27,7 +27,7 @@ CDMABuffer::CDMABuffer(uint32_t id, wl_client* client, Aquamarine::SDMABUFAttrs
|
|||
}
|
||||
|
||||
texture = makeShared<CTexture>(attrs, eglImage); // texture takes ownership of the eglImage
|
||||
opaque = FormatUtils::isFormatOpaque(attrs.format);
|
||||
opaque = NFormatUtils::isFormatOpaque(attrs.format);
|
||||
success = texture->m_iTexID;
|
||||
|
||||
if (!success)
|
||||
|
|
|
|||
|
|
@ -5,15 +5,15 @@
|
|||
#include <cstdint>
|
||||
#include "../../helpers/signal/Signal.hpp"
|
||||
|
||||
enum eDataSourceType {
|
||||
enum eDataSourceType : uint8_t {
|
||||
DATA_SOURCE_TYPE_WAYLAND = 0,
|
||||
DATA_SOURCE_TYPE_X11,
|
||||
};
|
||||
|
||||
class IDataSource {
|
||||
public:
|
||||
IDataSource() {}
|
||||
virtual ~IDataSource() {}
|
||||
IDataSource() = default;
|
||||
virtual ~IDataSource() = default;
|
||||
|
||||
virtual std::vector<std::string> mimes() = 0;
|
||||
virtual void send(const std::string& mime, uint32_t fd) = 0;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
enum eSurfaceRole {
|
||||
enum eSurfaceRole : uint8_t {
|
||||
SURFACE_ROLE_UNASSIGNED = 0,
|
||||
SURFACE_ROLE_XDG_SHELL,
|
||||
SURFACE_ROLE_LAYER_SHELL,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue