mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 08:26:27 +00:00
* clang-format: Do not use tabs * Ignore clangd cache and compile_commands * NSBlockOperation: Fix memory leak * NSHTTPCookie: Fix expires date parsing * NSHTTPCookie: Release DateFormatter after use * NSOperation: Remove all objects at end of execution * Reimplementation of NSURLSession * NSURLSession: Update expiration dates in test * Update ChangeLog * Fix trivial compiler warning caused by missing import * Import GSDispatch.h for definition of DISPATCH_QUEUE_SERIAL * Import common.h early to avoid header conflict * Fix import order to avoid conflicts and ensure we have correct localisation macro * Check for presence of dispatch_cancel * Cancel timer using dispatch_source_cancel() if dispatch_cancel() is missing. * NSURLSession: Replace dispatch_io with dispatch_source in unit test HTTP server --------- Co-authored-by: hmelder <service@hugomelder.com>
76 lines
2.3 KiB
YAML
76 lines
2.3 KiB
YAML
# Copyright (C) 2015 Free Software Foundation, Inc.
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
# Modified from gcc's clang-format config.
|
|
|
|
# clang-format 7.0.1 is required
|
|
#
|
|
# To utilize the tool to lines just touched by a patch, use
|
|
# clang-format-diff script that is usually also packaged with clang-format.
|
|
#
|
|
# Example of usage:
|
|
# git diff -U0 --no-color | clang-format-diff -p1
|
|
# (here the tool will generate a patch)
|
|
# git diff -U0 --no-color | clang-format-diff -p1 -i
|
|
# (modifications are applied)
|
|
|
|
---
|
|
AccessModifierOffset: -2
|
|
AlwaysBreakAfterReturnType: TopLevel
|
|
AlignConsecutiveDeclarations: true
|
|
BinPackArguments: true
|
|
BinPackParameters: true
|
|
BreakBeforeBinaryOperators: All
|
|
BreakBeforeBraces: Custom
|
|
# Newer clang-format has BS_GNU
|
|
BraceWrapping:
|
|
AfterClass: true
|
|
AfterControlStatement: true
|
|
AfterEnum: true
|
|
AfterFunction: true
|
|
AfterNamespace: false
|
|
AfterObjCDeclaration: true
|
|
AfterStruct: true
|
|
AfterUnion: true
|
|
BeforeCatch: true
|
|
BeforeElse: true
|
|
IndentBraces: true
|
|
SplitEmptyFunction: false
|
|
BreakBeforeTernaryOperators: true
|
|
ColumnLimit: 80
|
|
ConstructorInitializerIndentWidth: 2
|
|
ContinuationIndentWidth: 2
|
|
ObjCBlockIndentWidth: 2
|
|
ObjCSpaceAfterProperty: true
|
|
ObjCSpaceBeforeProtocolList: true
|
|
ForEachMacros: []
|
|
IndentCaseLabels: false
|
|
NamespaceIndentation: None
|
|
PenaltyBreakBeforeFirstCallParameter: 100
|
|
DerivePointerAlignment: false
|
|
PointerAlignment: Right
|
|
SortIncludes: false
|
|
SpaceAfterCStyleCast: true
|
|
SpaceBeforeParens: ControlStatements
|
|
SpacesBeforeTrailingComments: 1
|
|
AlignEscapedNewlines: Right
|
|
AlignTrailingComments: true
|
|
AllowShortFunctionsOnASingleLine: All
|
|
AlwaysBreakTemplateDeclarations: MultiLine
|
|
KeepEmptyLinesAtTheStartOfBlocks: false
|
|
|
|
# TODO
|
|
# MacroBlockBegin:
|
|
# MacroBlockEnd:
|