Warning, /education/labplot/src/3rdparty/liborigin/_clang-format is written in an unsupported language. File is not indexed.

0001 # Copyright (C) 2016 Olivier Goffart <ogoffart@woboq.com>
0002 #
0003 # You may use this file under the terms of the 3-clause BSD license.
0004 # See the file LICENSE from this package for details.
0005 
0006 # This is the clang-format configuration style to be used by Qt,
0007 # based on the rules from https://wiki.qt.io/Qt_Coding_Style and
0008 # https://wiki.qt.io/Coding_Conventions
0009 
0010 ---
0011 # Webkit style was loosely based on the Qt style
0012 BasedOnStyle: WebKit
0013 
0014 Standard: Cpp11
0015 
0016 # Column width is limited to 100 in accordance with Qt Coding Style.
0017 # https://wiki.qt.io/Qt_Coding_Style
0018 # Note that this may be changed at some point in the future.
0019 ColumnLimit: 100
0020 # How much weight do extra characters after the line length limit have.
0021 # PenaltyExcessCharacter: 4
0022 
0023 # Disable reflow of qdoc comments: indentation rules are different.
0024 # Translation comments are also excluded.
0025 CommentPragmas: "^!|^:"
0026 
0027 # We want a space between the type and the star for pointer types.
0028 PointerBindsToType: false
0029 
0030 # We use template< without space.
0031 SpaceAfterTemplateKeyword: false
0032 
0033 # We want to break before the operators, but not before a '='.
0034 BreakBeforeBinaryOperators: NonAssignment
0035 
0036 # Braces are usually attached, but not after functions or class declarations.
0037 BreakBeforeBraces: Custom
0038 BraceWrapping:
0039     AfterClass: true
0040     AfterControlStatement: false
0041     AfterEnum: false
0042     AfterFunction: true
0043     AfterNamespace: false
0044     AfterObjCDeclaration: false
0045     AfterStruct: true
0046     AfterUnion: false
0047     BeforeCatch: false
0048     BeforeElse: false
0049     IndentBraces: false
0050 
0051 # When constructor initializers do not fit on one line, put them each on a new line.
0052 ConstructorInitializerAllOnOneLineOrOnePerLine: true
0053 # Indent initializers by 4 spaces
0054 ConstructorInitializerIndentWidth: 4
0055 
0056 # Indent width for line continuations.
0057 ContinuationIndentWidth: 8
0058 
0059 # No indentation for namespaces.
0060 NamespaceIndentation: None
0061 
0062 # Allow indentation for preprocessing directives (if/ifdef/endif). https://reviews.llvm.org/rL312125
0063 IndentPPDirectives: AfterHash
0064 
0065 # Horizontally align arguments after an open bracket.
0066 # The coding style does not specify the following, but this is what gives
0067 # results closest to the existing code.
0068 AlignAfterOpenBracket: true
0069 AlwaysBreakTemplateDeclarations: true
0070 
0071 # Ideally we should also allow less short function in a single line, but
0072 # clang-format does not handle that.
0073 AllowShortFunctionsOnASingleLine: Inline
0074 
0075 # The coding style specifies some include order categories, but also tells to
0076 # separate categories with an empty line. It does not specify the order within
0077 # the categories. Since the SortInclude feature of clang-format does not
0078 # re-order includes separated by empty lines, the feature is not used.
0079 SortIncludes: false
0080 
0081 # macros for which the opening brace stays attached.
0082 ForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH, forever, Q_FOREVER, QBENCHMARK, QBENCHMARK_ONCE ]
0083 
0084 # Break constructor initializers before the colon and after the commas.
0085 BreakConstructorInitializers: BeforeColon
0086 
0087 # Avoids the addition of a space between an identifier and the
0088 # initializer list in list-initialization.
0089 SpaceBeforeCpp11BracedList: false
0090