mirror of
https://github.com/nlohmann/json.git
synced 2026-02-17 09:03:58 +00:00
Overwork astyle call (#4573)
* 🔧 overwork astyle call * 🔧 overwork astyle call * 🔧 overwork astyle call * 🔧 overwork astyle call * 🔧 overwork astyle call * 🔧 overwork astyle call * 🔧 overwork astyle call * 🔧 overwork astyle call * 🔧 overwork astyle call * 🔧 overwork astyle call * 🔧 overwork astyle call * Use ubuntu-latest image to run Valgrind (#4575) * 🔧 use Clang image to run valgrind * 🔧 use Clang image to run valgrind * 🔧 use Clang image to run valgrind * 🔧 use Ubuntu image to run valgrind * Use Clang image to run iwyu (#4574) * 🔧 use Clang image to run iwyu * 🔧 use Clang image to run iwyu * 🔧 overwork astyle call * 🔧 overwork astyle call * 🔧 overwork astyle call * 🔧 overwork astyle call * 🔧 overwork astyle call * 🔧 overwork astyle call * 🔧 overwork astyle call * 🔧 overwork astyle call * 🔧 overwork astyle call * 🔧 overwork astyle call * 🔧 overwork astyle call * 🎨 format code * 🔨 clean up
This commit is contained in:
80
tools/astyle/.astylerc
Normal file
80
tools/astyle/.astylerc
Normal file
@@ -0,0 +1,80 @@
|
||||
# Configuration for Artistic Style
|
||||
# see https://astyle.sourceforge.net/astyle.html
|
||||
|
||||
#######################
|
||||
# Brace Style Options #
|
||||
#######################
|
||||
|
||||
# use Allman style for braces
|
||||
--style=allman
|
||||
|
||||
###############
|
||||
# Tab Options #
|
||||
###############
|
||||
|
||||
# indent using 4 spaces
|
||||
--indent=spaces=4
|
||||
|
||||
#######################
|
||||
# Indentation Options #
|
||||
#######################
|
||||
|
||||
# indent access modifiers one half indent
|
||||
--indent-modifiers
|
||||
|
||||
# indent switch cases to the switch block
|
||||
--indent-switches
|
||||
|
||||
# indent preprocessor blocks
|
||||
--indent-preproc-block
|
||||
|
||||
# indent preprocessor defines
|
||||
--indent-preproc-define
|
||||
|
||||
# indent C++ comments
|
||||
--indent-col1-comments
|
||||
|
||||
###################
|
||||
# Padding Options #
|
||||
###################
|
||||
|
||||
# insert space padding around operators
|
||||
--pad-oper
|
||||
|
||||
# insert space between if/for/while... and the following parentheses
|
||||
--pad-header
|
||||
|
||||
# attach the pointer to the variable type (left)
|
||||
--align-pointer=type
|
||||
|
||||
# attach the reference to the variable type (left)
|
||||
--align-reference=type
|
||||
|
||||
######################
|
||||
# Formatting Options #
|
||||
######################
|
||||
|
||||
# add braces to unbraced one line conditional statements
|
||||
--add-braces
|
||||
|
||||
# convert tabs to spaces
|
||||
--convert-tabs
|
||||
|
||||
# closes whitespace between the ending angle brackets of template definitions
|
||||
--close-templates
|
||||
|
||||
#################
|
||||
# Other Options #
|
||||
#################
|
||||
|
||||
# do not create backup files
|
||||
--suffix=none
|
||||
|
||||
# preserve the original file date
|
||||
--preserve-date
|
||||
|
||||
# display only the files that have been formatted
|
||||
--formatted
|
||||
|
||||
# for the linux (LF) line end style
|
||||
--lineend=linux
|
||||
1
tools/astyle/requirements.txt
Normal file
1
tools/astyle/requirements.txt
Normal file
@@ -0,0 +1 @@
|
||||
astyle==3.4.13
|
||||
Reference in New Issue
Block a user