summaryrefslogtreecommitdiffstats
path: root/Utilities/Scripts/clang-format.bash
Commit message (Collapse)AuthorAgeFilesLines
* clang-format.bash: update to clang-format-6.0Brad King2018-06-011-5/+5
| | | | | | | | | | | | Update `.clang-format` with configuration to make the 6.0 format as close as possible to what 3.8 produced before. Then revise the style: * Indent preprocessor directives (a feature new since 3.8) * Add a newline and indentation before inheritance `:` and `,` Rename the Git attribute identifying the format to include the clang-format version number: `format.clang-format-6.0`. This will aid external infrastructure in knowing what version of the tool to run.
* clang-format: Explicitly require version 3.8 of the toolBrad King2018-05-181-1/+6
| | | | | | | | | Versions of clang-format newer than 3.8 produce different output. Our source code guide says that version 3.8 exactly must be used. Update the comment in our `.clang-format` config file accordingly. Add a check to our formatting script to verify the version. Also update its tool search to look for the explicitly-named 3.8 variant first.
* clang-format.bash: minor fixes to support MacOSMatthias Maennich2017-10-031-2/+4
| | | | | | | - sed on Mac does not support embedded sed statements, hence eliminating the non-matches via grep - xargs on Mac does not support -d, but does support -0, hence replacing
* clang-format.bash: Fix error message when clang-format is not foundBrad King2017-07-051-1/+1
| | | | | Do not refer to a variable we just determined is empty to get the name of the tool for the error message. Just hard-code the name.
* clang-format.bash: Use Git attributes to mark files for formattingBrad King2017-02-221-29/+7
|
* clang-format.bash: Format CUDA source files tooBrad King2017-02-141-1/+1
| | | | | | Add `.clang-format` configuration files for Cuda test directories that use `Standard: Cpp11`. Otherwise clang-format splits the triple angle brackets used for CUDA kernels.
* Remove unused cm_sha2 infrastructureBrad King2016-11-101-1/+1
| | | | | All clients of `cm_sha2` have been ported to `cmCryptoHash`, which now uses librhash internally.
* Features: Fix cxx_right_angle_brackets compiler feature testAlex Wang2016-10-251-0/+1
| | | | | | | The clang-format pass in commit v3.6.0-rc1~54^2~1 (Revise C++ coding style using clang-format, 2016-05-16) changed the template right angle brackets from `>>` to `> >`, which defeats the purpose of this test. Change it back and exclude this content from formatting.
* Tests: Port GenerateExportHeader test to RunCMake infrastructureBrad King2016-09-051-1/+1
| | | | This will allow build failure cases to be added later.
* clang-format.bash: Fix filter-branch example documentationBrad King2016-06-301-4/+8
| | | | | | Inside `git filter-branch --tree-filter` we must format all tracked files because formatting of the tree for each commit is independent from earlier commits.
* clang-format.bash: Limit formatting to files selected by optionsBrad King2016-05-201-2/+45
| | | | | | | Now that our one-shot clang-format run is complete we rarely need to filter the entire tree anymore. Filter nothing if no options are given and just print the usage message. Offer options to specify selection of some set of files from Git as needed for various workflows.
* Add a script to run clang-format on the entire source treeBrad King2016-05-161-0/+91
List all sources in version control and filter out those that we should not format for various reasons. Then run the clang-format tool to do an in-place update.