mirror of https://github.com/yshui/picom.git
Update .clang-format
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
24f0241907
commit
01e6d680ab
|
@ -5,12 +5,14 @@ BreakBeforeBraces: Attach
|
|||
#BreakStringLiterals: true
|
||||
IndentWidth: 8
|
||||
AlignAfterOpenBracket: Align
|
||||
AlignConsecutiveAssignments: true
|
||||
ColumnLimit: 90
|
||||
#ExperimentalAutoDetectBinPacking: true
|
||||
BinPackArguments: true
|
||||
BinPackParameters: true
|
||||
#ReflowComments: true
|
||||
AlignTrailingComments: true
|
||||
AlignConsecutiveMacros: true
|
||||
SpacesBeforeTrailingComments: 8
|
||||
SpaceBeforeAssignmentOperators: true
|
||||
SpaceBeforeParens: ControlStatements
|
||||
|
@ -18,7 +20,7 @@ AllowShortIfStatementsOnASingleLine: false
|
|||
AllowShortCaseLabelsOnASingleLine: true
|
||||
AllowShortFunctionsOnASingleLine: false
|
||||
IndentCaseLabels: false
|
||||
IndentPPDirectives: None
|
||||
IndentPPDirectives: AfterHash
|
||||
PenaltyReturnTypeOnItsOwnLine: 0
|
||||
PenaltyBreakAssignment: 0
|
||||
PenaltyBreakBeforeFirstCallParameter: 1
|
||||
|
|
12
src/picom.c
12
src/picom.c
|
@ -37,7 +37,7 @@
|
|||
#include "kernel.h"
|
||||
#include "picom.h"
|
||||
#ifdef CONFIG_OPENGL
|
||||
#include "opengl.h"
|
||||
# include "opengl.h"
|
||||
#endif
|
||||
#include "backend/backend.h"
|
||||
#include "c2.h"
|
||||
|
@ -51,7 +51,7 @@
|
|||
#include "win.h"
|
||||
#include "x.h"
|
||||
#ifdef CONFIG_DBUS
|
||||
#include "dbus.h"
|
||||
# include "dbus.h"
|
||||
#endif
|
||||
#include "atom.h"
|
||||
#include "event.h"
|
||||
|
@ -82,14 +82,14 @@ const char *const WINTYPES[NUM_WINTYPES] = {
|
|||
"popup_menu", "tooltip", "notification", "combo", "dnd",
|
||||
};
|
||||
|
||||
// clang-format off
|
||||
/// Names of backends.
|
||||
const char *const BACKEND_STRS[] = {[BKEND_XRENDER] = "xrender",
|
||||
const char *const BACKEND_STRS[] = {
|
||||
[BKEND_XRENDER] = "xrender",
|
||||
[BKEND_GLX] = "glx",
|
||||
[BKEND_XR_GLX_HYBRID] = "xr_glx_hybrid",
|
||||
[BKEND_DUMMY] = "dummy",
|
||||
NULL};
|
||||
// clang-format on
|
||||
NULL,
|
||||
};
|
||||
|
||||
// === Global variables ===
|
||||
|
||||
|
|
Loading…
Reference in New Issue