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
|
#BreakStringLiterals: true
|
||||||
IndentWidth: 8
|
IndentWidth: 8
|
||||||
AlignAfterOpenBracket: Align
|
AlignAfterOpenBracket: Align
|
||||||
|
AlignConsecutiveAssignments: true
|
||||||
ColumnLimit: 90
|
ColumnLimit: 90
|
||||||
#ExperimentalAutoDetectBinPacking: true
|
#ExperimentalAutoDetectBinPacking: true
|
||||||
BinPackArguments: true
|
BinPackArguments: true
|
||||||
BinPackParameters: true
|
BinPackParameters: true
|
||||||
#ReflowComments: true
|
#ReflowComments: true
|
||||||
AlignTrailingComments: true
|
AlignTrailingComments: true
|
||||||
|
AlignConsecutiveMacros: true
|
||||||
SpacesBeforeTrailingComments: 8
|
SpacesBeforeTrailingComments: 8
|
||||||
SpaceBeforeAssignmentOperators: true
|
SpaceBeforeAssignmentOperators: true
|
||||||
SpaceBeforeParens: ControlStatements
|
SpaceBeforeParens: ControlStatements
|
||||||
|
@ -18,7 +20,7 @@ AllowShortIfStatementsOnASingleLine: false
|
||||||
AllowShortCaseLabelsOnASingleLine: true
|
AllowShortCaseLabelsOnASingleLine: true
|
||||||
AllowShortFunctionsOnASingleLine: false
|
AllowShortFunctionsOnASingleLine: false
|
||||||
IndentCaseLabels: false
|
IndentCaseLabels: false
|
||||||
IndentPPDirectives: None
|
IndentPPDirectives: AfterHash
|
||||||
PenaltyReturnTypeOnItsOwnLine: 0
|
PenaltyReturnTypeOnItsOwnLine: 0
|
||||||
PenaltyBreakAssignment: 0
|
PenaltyBreakAssignment: 0
|
||||||
PenaltyBreakBeforeFirstCallParameter: 1
|
PenaltyBreakBeforeFirstCallParameter: 1
|
||||||
|
|
12
src/picom.c
12
src/picom.c
|
@ -37,7 +37,7 @@
|
||||||
#include "kernel.h"
|
#include "kernel.h"
|
||||||
#include "picom.h"
|
#include "picom.h"
|
||||||
#ifdef CONFIG_OPENGL
|
#ifdef CONFIG_OPENGL
|
||||||
#include "opengl.h"
|
# include "opengl.h"
|
||||||
#endif
|
#endif
|
||||||
#include "backend/backend.h"
|
#include "backend/backend.h"
|
||||||
#include "c2.h"
|
#include "c2.h"
|
||||||
|
@ -51,7 +51,7 @@
|
||||||
#include "win.h"
|
#include "win.h"
|
||||||
#include "x.h"
|
#include "x.h"
|
||||||
#ifdef CONFIG_DBUS
|
#ifdef CONFIG_DBUS
|
||||||
#include "dbus.h"
|
# include "dbus.h"
|
||||||
#endif
|
#endif
|
||||||
#include "atom.h"
|
#include "atom.h"
|
||||||
#include "event.h"
|
#include "event.h"
|
||||||
|
@ -82,14 +82,14 @@ const char *const WINTYPES[NUM_WINTYPES] = {
|
||||||
"popup_menu", "tooltip", "notification", "combo", "dnd",
|
"popup_menu", "tooltip", "notification", "combo", "dnd",
|
||||||
};
|
};
|
||||||
|
|
||||||
// clang-format off
|
|
||||||
/// Names of backends.
|
/// Names of backends.
|
||||||
const char *const BACKEND_STRS[] = {[BKEND_XRENDER] = "xrender",
|
const char *const BACKEND_STRS[] = {
|
||||||
|
[BKEND_XRENDER] = "xrender",
|
||||||
[BKEND_GLX] = "glx",
|
[BKEND_GLX] = "glx",
|
||||||
[BKEND_XR_GLX_HYBRID] = "xr_glx_hybrid",
|
[BKEND_XR_GLX_HYBRID] = "xr_glx_hybrid",
|
||||||
[BKEND_DUMMY] = "dummy",
|
[BKEND_DUMMY] = "dummy",
|
||||||
NULL};
|
NULL,
|
||||||
// clang-format on
|
};
|
||||||
|
|
||||||
// === Global variables ===
|
// === Global variables ===
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue