head	1.1;
access;
symbols
	netbsd-11-0-RC6:1.1
	netbsd-11-0-RC5:1.1
	netbsd-11-0-RC4:1.1
	netbsd-11-0-RC3:1.1
	netbsd-11-0-RC2:1.1
	netbsd-11-0-RC1:1.1
	perseant-exfatfs:1.1.0.6
	perseant-exfatfs-base-20250801:1.1
	netbsd-11:1.1.0.4
	netbsd-11-base:1.1
	netbsd-10-1-RELEASE:1.1.2.2
	netbsd-10:1.1.0.2;
locks; strict;
comment	@# @;


1.1
date	2024.08.23.09.06.37;	author wiz;	state Exp;
branches
	1.1.2.1
	1.1.6.1;
next	;
commitid	YZSiZmuHeBO4vVmF;

1.1.2.1
date	2024.08.23.09.06.37;	author martin;	state dead;
branches;
next	1.1.2.2;
commitid	dfyIlG1U93xGxypF;

1.1.2.2
date	2024.09.12.20.12.10;	author martin;	state Exp;
branches;
next	;
commitid	dfyIlG1U93xGxypF;

1.1.6.1
date	2024.08.23.09.06.37;	author perseant;	state dead;
branches;
next	1.1.6.2;
commitid	23j6GFaDws3O875G;

1.1.6.2
date	2025.08.02.05.55.18;	author perseant;	state Exp;
branches;
next	;
commitid	23j6GFaDws3O875G;


desc
@@


1.1
log
@Add basic clang-format configuration file for NetBSD sources.
@
text
@# $NetBSD$
#
# This is a base for using clang-format with NetBSD sources.
#
# /usr/share/misc/style has more details, some of which cannot be
# captured here.
#
# To use it, rename it to .clang-format and put it in the directory
# you're editing, or call clang-format with the --style argument:
#
#	clang-format --style=file:/usr/share/misc/dot.clang-format [...] file.c
#
# 80 characters line length
ColumnLimit: 80
# if comments get too long, fmt them.
ReflowComments: true
# default indentation level
IndentWidth: 8
# also for struct initializers
BracedInitializerIndentWidth: 8
# prefer using tabs to spaces when indenting
UseTab: ForContinuationAndIndentation
# indent 1 space more per #if-level
PPIndentWidth: 1
# and put the space after the hash but before the keyword (i.e., "# if")
IndentPPDirectives: AfterHash
# backslashes at end-of-line are aligned, but as far left as possible
AlignEscapedNewlines: Left
# not supported in clang-format 18, would include the last line (without backslash) in the offset consideration
#AlignEscapedNewlines: LeftWithLastLine
#
# if function arguments get too long, start new line indented by 4
AlignAfterOpenBracket: DontAlign
ContinuationIndentWidth: 4
# but keep first parameters on the first line
AllowAllParametersOfDeclarationOnNextLine: False
AllowAllArgumentsOnNextLine: false
# for struct's etc. use 8 characters indent as well
ConstructorInitializerIndentWidth: 8
# attach "{", except for functions
BreakBeforeBraces: WebKit
# for functions, add newline after return type
AlwaysBreakAfterReturnType: TopLevelDefinitions
# align structure elements to the right
AlignArrayOfStructures: Right
@


1.1.6.1
log
@file dot.clang-format was added on branch perseant-exfatfs on 2025-08-02 05:55:18 +0000
@
text
@d1 45
@


1.1.6.2
log
@Sync with HEAD
@
text
@a0 45
# $NetBSD: dot.clang-format,v 1.1 2024/08/23 09:06:37 wiz Exp $
#
# This is a base for using clang-format with NetBSD sources.
#
# /usr/share/misc/style has more details, some of which cannot be
# captured here.
#
# To use it, rename it to .clang-format and put it in the directory
# you're editing, or call clang-format with the --style argument:
#
#	clang-format --style=file:/usr/share/misc/dot.clang-format [...] file.c
#
# 80 characters line length
ColumnLimit: 80
# if comments get too long, fmt them.
ReflowComments: true
# default indentation level
IndentWidth: 8
# also for struct initializers
BracedInitializerIndentWidth: 8
# prefer using tabs to spaces when indenting
UseTab: ForContinuationAndIndentation
# indent 1 space more per #if-level
PPIndentWidth: 1
# and put the space after the hash but before the keyword (i.e., "# if")
IndentPPDirectives: AfterHash
# backslashes at end-of-line are aligned, but as far left as possible
AlignEscapedNewlines: Left
# not supported in clang-format 18, would include the last line (without backslash) in the offset consideration
#AlignEscapedNewlines: LeftWithLastLine
#
# if function arguments get too long, start new line indented by 4
AlignAfterOpenBracket: DontAlign
ContinuationIndentWidth: 4
# but keep first parameters on the first line
AllowAllParametersOfDeclarationOnNextLine: False
AllowAllArgumentsOnNextLine: false
# for struct's etc. use 8 characters indent as well
ConstructorInitializerIndentWidth: 8
# attach "{", except for functions
BreakBeforeBraces: WebKit
# for functions, add newline after return type
AlwaysBreakAfterReturnType: TopLevelDefinitions
# align structure elements to the right
AlignArrayOfStructures: Right
@


1.1.2.1
log
@file dot.clang-format was added on branch netbsd-10 on 2024-09-12 20:12:10 +0000
@
text
@d1 45
@


1.1.2.2
log
@Pull up following revision(s) (requested by rin in ticket #854):

	distrib/sets/lists/base/mi: revision 1.1349
	share/misc/dot.clang-format: revision 1.1
	share/misc/Makefile: revision 1.41

Add basic clang-format configuration file for NetBSD sources.
@
text
@a0 45
# $NetBSD: dot.clang-format,v 1.1 2024/08/23 09:06:37 wiz Exp $
#
# This is a base for using clang-format with NetBSD sources.
#
# /usr/share/misc/style has more details, some of which cannot be
# captured here.
#
# To use it, rename it to .clang-format and put it in the directory
# you're editing, or call clang-format with the --style argument:
#
#	clang-format --style=file:/usr/share/misc/dot.clang-format [...] file.c
#
# 80 characters line length
ColumnLimit: 80
# if comments get too long, fmt them.
ReflowComments: true
# default indentation level
IndentWidth: 8
# also for struct initializers
BracedInitializerIndentWidth: 8
# prefer using tabs to spaces when indenting
UseTab: ForContinuationAndIndentation
# indent 1 space more per #if-level
PPIndentWidth: 1
# and put the space after the hash but before the keyword (i.e., "# if")
IndentPPDirectives: AfterHash
# backslashes at end-of-line are aligned, but as far left as possible
AlignEscapedNewlines: Left
# not supported in clang-format 18, would include the last line (without backslash) in the offset consideration
#AlignEscapedNewlines: LeftWithLastLine
#
# if function arguments get too long, start new line indented by 4
AlignAfterOpenBracket: DontAlign
ContinuationIndentWidth: 4
# but keep first parameters on the first line
AllowAllParametersOfDeclarationOnNextLine: False
AllowAllArgumentsOnNextLine: false
# for struct's etc. use 8 characters indent as well
ConstructorInitializerIndentWidth: 8
# attach "{", except for functions
BreakBeforeBraces: WebKit
# for functions, add newline after return type
AlwaysBreakAfterReturnType: TopLevelDefinitions
# align structure elements to the right
AlignArrayOfStructures: Right
@


