forked from qt-creator/qt-creator
ClangFormat: Adapt to clang 11 API changes
Change-Id: Id5d977e56017a80138f2c033e145b67446eff3ab Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -54,7 +54,11 @@ static clang::format::FormatStyle qtcStyle()
|
||||
style.AlignConsecutiveAssignments = false;
|
||||
style.AlignConsecutiveDeclarations = false;
|
||||
style.AlignEscapedNewlines = FormatStyle::ENAS_DontAlign;
|
||||
#if LLVM_VERSION_MAJOR >= 11
|
||||
style.AlignOperands = FormatStyle::OAS_Align;
|
||||
#else
|
||||
style.AlignOperands = true;
|
||||
#endif
|
||||
style.AlignTrailingComments = true;
|
||||
style.AllowAllParametersOfDeclarationOnNextLine = true;
|
||||
#if LLVM_VERSION_MAJOR >= 10
|
||||
|
||||
Reference in New Issue
Block a user