Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pistache
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
pistache
Commits
4cc9b264
Unverified
Commit
4cc9b264
authored
Apr 05, 2021
by
Kip
Committed by
GitHub
Apr 05, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #881 from Tachi107/meson-clang-format
Add Meson clang-format target
parents
274a88e3
e41c18f6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
meson.build
meson.build
+7
-0
tools/format.sh
tools/format.sh
+3
-1
No files found.
meson.build
View file @
4cc9b264
...
@@ -115,3 +115,10 @@ endif
...
@@ -115,3 +115,10 @@ endif
if get_option('PISTACHE_BUILD_DOCS')
if get_option('PISTACHE_BUILD_DOCS')
subdir('docs')
subdir('docs')
endif
endif
if find_program('clang-format', required: false).found()
run_target(
'format',
command: (find_program('tools/format.sh'))
)
endif
tools/format.sh
View file @
4cc9b264
#!/
usr/bin/env ba
sh
#!/
bin/
sh
set
-eu
set
-eu
if
[
!
-z
${
MESON_SOURCE_ROOT
+x
}
]
;
then
cd
"
${
MESON_SOURCE_ROOT
}
"
;
fi
find_files
()
{
find_files
()
{
git ls-files
--cached
--exclude-standard
--others
|
grep
-E
'\.(cc|cpp|h)$'
git ls-files
--cached
--exclude-standard
--others
|
grep
-E
'\.(cc|cpp|h)$'
}
}
...
...
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