mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-27 11:49:48 +01:00
8bbeee1173
This adds a .clang-tidy file for us. It's not a strict requirement to be compliant, but I tuned it to be alright.
36 lines
717 B
C++
36 lines
717 B
C++
#pragma once
|
|
|
|
// because C/C++ VS Code intellisense is stupid with includes, we will suppress them here.
|
|
// This suppresses all "include file not found" errors.
|
|
#ifdef __INTELLISENSE__
|
|
#pragma diag_suppress 1696
|
|
#endif
|
|
|
|
#include <getopt.h>
|
|
#include <libinput.h>
|
|
#include <linux/input-event-codes.h>
|
|
#include <csignal>
|
|
#include <cstdio>
|
|
#include <cstdlib>
|
|
#include <sys/wait.h>
|
|
#include <ctime>
|
|
#include <unistd.h>
|
|
#include <wayland-server-core.h>
|
|
|
|
#ifdef LEGACY_RENDERER
|
|
#include <GLES2/gl2.h>
|
|
#include <GLES2/gl2ext.h>
|
|
#define GLES2
|
|
#else
|
|
#define GLES32
|
|
#include <GLES3/gl32.h>
|
|
#include <GLES3/gl3ext.h>
|
|
#endif
|
|
|
|
#ifdef NO_XWAYLAND
|
|
#define XWAYLAND false
|
|
#else
|
|
#define XWAYLAND true
|
|
#endif
|
|
|
|
#include "SharedDefs.hpp"
|