aboutsummaryrefslogtreecommitdiffstats
path: root/.clang-format
AgeCommit message (Collapse)Author
2015-10-19Reenable ForEachMacros in .clang-formatGravatar K. \"pestophagous\" Heller
The use of ForEachMacros is working as expected when used with clang-format version 3.5.0-10. Also add ConstructorInitializerIndentWidth: 8, which slightly helps with ctor style, but still does not enforce the full subsurface ctor guidelines. Signed-off-by: K. Heller <pestophagous@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-19Sort the entries in .clang-format alphabetically.Gravatar K. \"pestophagous\" Heller
No changes were made to the values of the entries. Sorting makes it easier for a clang-format n00b to compare each setting to its documentation on the http://clang.llvm.org/docs/ClangFormatStyleOptions.html web page. Signed-off-by: K. Heller <pestophagous@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-05-22Small tweaks to our whitespace handlingGravatar Dirk Hohndel
This is still not (and likely will never be) intended to just be blindly run and mechanically applied to all files. It tries to implement our rules but it is not perfect and more importantly, we have parts of the code where we intentionally break our rules for various reasons of readability in that particular situation. But running this against the sources files you touch often will point out things that are wrong and should be fixed. This fixes the indentation for continuation lines and the handling of the for each style loops (clang 3.5 should have this built in - I'll play with the current development version of this later). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-02-12Add a simplistic tool to clean up whitespaceGravatar Dirk Hohndel
This hasn't been tested enought, but it seems to get really close. It assumes that clang-format is in your patch. Run perl scripys/whitespace.pl FILENAME and you'll get a diff of what it things is wrong with that file. If you like what you see, simply pipe the output into patch -p0 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>