2
什麼鐺格式使得:防止鐺格式從縮進lambda表達式
QObject::connect(&w, &sap::Window::keyPress, [&w](auto* event)
{
if(event->key() == Qt::Key_Escape)
w.close();
});
我想要什麼:
QObject::connect(&w, &sap::Window::keyPress, [&w](auto* event)
{
if(event->key() == Qt::Key_Escape)
w.close();
});
有沒有辦法可以讓鐺格式不縮進拉姆達機構?在文檔中找不到任何關於它的內容。
這是我到目前爲止有:
BasedOnStyle: LLVM,
BreakBeforeBraces: Allman,
NamespaceIndentation: All,
SpaceBeforeParens: Never,
AccessModifierOffset: -4,
AllowShortIfStatementsOnASingleLine: false,
AllowShortBlocksOnASingleLine: false,
AllowShortFunctionsOnASingleLine: None,
AllowShortCaseLabelsOnASingleLine: false,
AllowShortLoopsOnASingleLine: false,
ColumnLimit: 100,
AlwaysBreakTemplateDeclarations: true,
PenaltyReturnTypeOnItsOwnLine: 9999,
IndentWidth: 4,
PointerAlignment: Left