run-clang-format | wrapper script around clang-format | Continous Integration library
kandi X-RAY | run-clang-format Summary
kandi X-RAY | run-clang-format Summary
A wrapper script around clang-format, suitable for linting multiple files and to use for continuous integration
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Wrapper for clang_format_diff
- Run clang - format diff
- Make a diff between two files
- Print diff lines
- Colorize diff lines
- Print error message
- bold text
- Return a list of files
- Return exclusion patterns from file
run-clang-format Key Features
run-clang-format Examples and Code Snippets
Community Discussions
Trending Discussions on run-clang-format
QUESTION
Is there any official directive in .clang-format
file to exclude directory for applying?
Projects sometimes use git submodule
, but it is not useful to run clang-format
over all directory and then use git checkout
to undo changes in submodule folder.
I have found some related links:
But they don't seem official.
...ANSWER
Answered 2018-Aug-10 at 20:25So far, I don't know of any option of clang-format to exclude files or directories. But what I do, is to create the list of files I want to process in a bash script and then call clang-format for them:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install run-clang-format
You can use run-clang-format like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page