Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spdlog
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
spdlog
Commits
230e15f4
Commit
230e15f4
authored
Sep 25, 2023
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated format.sh
parent
7f535d18
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
scripts/format.sh
+6
-4
No files found.
scripts/format.sh
View file @
230e15f4
...
@@ -2,15 +2,17 @@
...
@@ -2,15 +2,17 @@
cd
"
$(
dirname
"
$0
"
)
"
/..
cd
"
$(
dirname
"
$0
"
)
"
/..
pwd
pwd
find_sources
=
"find include src tests example bench -not ( -path include/spdlog/fmt/bundled -prune ) -type f -name *
\.
h -o -name *
\.
cpp"
echo
-n
"Running dos2unix "
echo
-n
"Running dos2unix "
find
.
-name
"*
\.
h"
-o
-name
"*
\.
cpp"
|grep
-v
bundled|
xargs
-I
{}
sh
-c
"dos2unix '{}' 2>/dev/null; echo -n '.'"
$find_sources
|
xargs
-I
{}
sh
-c
"dos2unix '{}' 2>/dev/null; echo -n '.'"
echo
echo
echo
-n
"Running clang-format "
echo
-n
"Running clang-format "
find include
-name
"*
\.
h"
|grep
-v
bundled|xargs
-I
{}
sh
-c
"clang-format -i {}; echo -n '.'"
find src
-name
"*
\.
cpp"
|xargs
-I
{}
sh
-c
"clang-format -i {}; echo -n '.'"
$find_sources
| xargs
-I
{}
sh
-c
"clang-format -i {}; echo -n '.'"
echo
echo
echo
-n
"Running cmake-format "
echo
-n
"Running cmake-format "
find
.
-name
"CMakeLists.txt"
-o
-name
"*
\.
cmake"
|grep
-v
bundled|grep
-v
build|xargs
-I
{}
sh
-c
"cmake-format --line-width 120 --tab-size 4 --max-subgroups-hwrap 4 -i {}; echo -n '.'"
find
.
-
type
f
-
name
"CMakeLists.txt"
-o
-name
"*
\.
cmake"
|grep
-v
bundled|grep
-v
build|xargs
-I
{}
sh
-c
"cmake-format --line-width 120 --tab-size 4 --max-subgroups-hwrap 4 -i {}; echo -n '.'"
echo
echo
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment