次は私の打ち鳴らす形式クラン形式のアラインメントが壊れていますか?
---
AccessModifierOffset: '-4'
AlignConsecutiveAssignments: 'true'
AlignOperands: 'true'
AlignTrailingComments: 'true'
AllowShortCaseLabelsOnASingleLine: 'false'
AllowShortIfStatementsOnASingleLine: 'true'
AllowShortLoopsOnASingleLine: 'false'
AlwaysBreakTemplateDeclarations: 'true'
BinPackArguments: 'true'
BinPackParameters: 'true'
BreakBeforeBraces: Allman
BreakConstructorInitializersBeforeComma: 'true'
ColumnLimit: '80'
ConstructorInitializerAllOnOneLineOrOnePerLine: 'true'
Cpp11BracedListStyle: 'true'
IndentCaseLabels: 'false'
IndentWidth: '4'
MaxEmptyLinesToKeep: '2'
NamespaceIndentation: All
PointerAlignment: Left
SpaceAfterCStyleCast: 'true'
SpaceBeforeAssignmentOperators: 'true'
SpaceBeforeParens: ControlStatements
SpacesBeforeTrailingComments: '1'
SpacesInParentheses: 'false'
SpacesInSquareBrackets: 'false'
Standard: Auto
TabWidth: '4'
UseTab: Always
...
あるしかし、私は、私は以下のような結果を得る++ファイルCでそれを実行したときに非整列の割り当ての問題領域は逐語的なコピーですが(コードは、ちんぷんかんぷんコピー&ペーストであります)私のコードで壊れたように私が見るものの
template <class X>
void prettyPrint(std::ostream& o, const X* x)
{
o << "*{";
if (x)
{
prettyPrint(o, *x);
}
else
{
o << "NULL";
}
// I wanted the following assignments to align !!!!
using value_type = std::decay_t<decltype(state)>;
using difference_type = std::ptrdiff_t;
using reference = value_type&;
using pointer = value_type*;
using iterator_category = std::input_iterator_tag;
o << "}";
}
は、私は上記の動作が誤っ見つける
AlignConsecutiveAssignments: 'true'
を設定したのsomethinがありますgの残りの部分で私の.clang-format
が結果を乱すか、これをバグとして報告すべきですか?