Allow short case labels on single line, wrap braces before lambda bodies
#84
This commit is contained in:
parent
2b9b75ac97
commit
04db76ac80
2 changed files with 6 additions and 5 deletions
|
@ -6,9 +6,11 @@
|
||||||
AccessModifierOffset: -4
|
AccessModifierOffset: -4
|
||||||
AlignAfterOpenBracket: DontAlign
|
AlignAfterOpenBracket: DontAlign
|
||||||
AllowShortBlocksOnASingleLine: true
|
AllowShortBlocksOnASingleLine: true
|
||||||
|
AllowShortCaseLabelsOnASingleLine: true
|
||||||
AllowShortFunctionsOnASingleLine: All
|
AllowShortFunctionsOnASingleLine: All
|
||||||
BasedOnStyle: LLVM
|
BasedOnStyle: LLVM
|
||||||
BraceWrapping:
|
BraceWrapping:
|
||||||
|
BeforeLambdaBody: true
|
||||||
AfterCaseLabel: true
|
AfterCaseLabel: true
|
||||||
AfterClass: true
|
AfterClass: true
|
||||||
AfterControlStatement: true
|
AfterControlStatement: true
|
||||||
|
|
|
@ -270,13 +270,12 @@ void CSoundEnt::Initialize()
|
||||||
//=========================================================
|
//=========================================================
|
||||||
int CSoundEnt::ISoundsInList(int iListType)
|
int CSoundEnt::ISoundsInList(int iListType)
|
||||||
{
|
{
|
||||||
int iThisSound = [=]() {
|
int iThisSound = [=]()
|
||||||
|
{
|
||||||
switch (iListType)
|
switch (iListType)
|
||||||
{
|
{
|
||||||
case SOUNDLISTTYPE_FREE:
|
case SOUNDLISTTYPE_FREE: return m_iFreeSound;
|
||||||
return m_iFreeSound;
|
case SOUNDLISTTYPE_ACTIVE: return m_iActiveSound;
|
||||||
case SOUNDLISTTYPE_ACTIVE:
|
|
||||||
return m_iActiveSound;
|
|
||||||
default:
|
default:
|
||||||
ALERT(at_console, "Unknown Sound List Type!\n");
|
ALERT(at_console, "Unknown Sound List Type!\n");
|
||||||
return SOUNDLIST_EMPTY;
|
return SOUNDLIST_EMPTY;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue