| 1 |
# Copyright (c) 2022, 2026, Oracle and/or its affiliates. |
| 2 |
# |
| 3 |
# This program is free software; you can redistribute it and/or modify |
| 4 |
# it under the terms of the GNU General Public License, version 2.0, as |
| 5 |
# published by the Free Software Foundation. |
| 6 |
# |
| 7 |
# This program is also distributed with certain software (including |
| 8 |
# but not limited to OpenSSL) that is licensed under separate terms, |
| 9 |
# as designated in a particular file or component or in included license |
| 10 |
# documentation. The authors of MySQL hereby grant you an |
| 11 |
# additional permission to link the program and your derivative works |
| 12 |
# with the separately licensed software that they have included with |
| 13 |
# MySQL. |
| 14 |
# |
| 15 |
# Without limiting anything contained in the foregoing, this file, |
| 16 |
# which is part of MySQL Connector/Python, is also subject to the |
| 17 |
# Universal FOSS Exception, version 1.0, a copy of which can be found at |
| 18 |
# http://oss.oracle.com/licenses/universal-foss-exception. |
| 19 |
# |
| 20 |
# This program is distributed in the hope that it will be useful, but |
| 21 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
| 22 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 23 |
# See the GNU General Public License, version 2.0, for more details. |
| 24 |
# |
| 25 |
# You should have received a copy of the GNU General Public License |
| 26 |
# along with this program; if not, write to the Free Software Foundation, Inc., |
| 27 |
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 28 |
|
| 29 |
# A clang-format style that approximates Python's PEP 7 |
| 30 |
BasedOnStyle: Google |
| 31 |
AlwaysBreakAfterReturnType: All |
| 32 |
AllowShortIfStatementsOnASingleLine: false |
| 33 |
AlignAfterOpenBracket: Align |
| 34 |
BreakBeforeBraces: Stroustrup |
| 35 |
ColumnLimit: 95 |
| 36 |
DerivePointerAlignment: false |
| 37 |
IndentWidth: 4 |
| 38 |
Language: Cpp |
| 39 |
PointerAlignment: Right |
| 40 |
ReflowComments: true |
| 41 |
SpaceBeforeParens: ControlStatements |
| 42 |
SpacesInParentheses: false |
| 43 |
TabWidth: 4 |
| 44 |
UseTab: Never |
| 45 |
SortIncludes: false |