aboutsummaryrefslogtreecommitdiff
path: root/src/.clang-format
AgeCommit message (Collapse)Author
2023-12-15refactor: Print verbose serialize compiler error messagesMarcoFalke
2023-12-07build: Require C++20 compilerMarcoFalke
2021-11-12Use c++17 in clang-formatMarcoFalke
2021-02-18[tools] Allow argument/parameter bin packing in clang-formatJohn Newbery
2020-07-06tools: clang-format 6 compatibilityJon Atack
2020-05-28[tools] Update clang-format configJohn Newbery
Allow arguments and parameters to be split over multiple lines if they don't fit on one line
2019-10-14util: Add AllowShortCaseLabelsOnASingleLine optionHennadii Stepanov
2018-04-13Fix inconsistent namespace formatting guidelinesRussell Yanofsky
Suggested formatting for namespaces in the developer guide is currently inconsistent. This commit updates the developer guide and clang-format configuration to consistently put "namespace" and opening/closing braces on the same line. Example: ```c++ namespace boost { namespace signals2 { class connection; } // namespace signals2 } // namespace boost ``` Currently the "Source code organization" section has an example like the one above, but the "Coding style" section example and description put a newline between the opening "namespace foo" and brace (but oddly no newline between closing namespace and brace). Avoiding newlines before namespace opening braces makes nested declarations less verbose and also avoids asymmetry with closing braces. It's also a common style used in other codebases: * https://google.github.io/styleguide/cppguide.html#Namespaces * https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#Classes * https://llvm.org/docs/CodingStandards.html#namespace-indentation
2017-07-04Merge #10193: scripted-diff: Remove #include <boost/foreach.hpp>Wladimir J. van der Laan
b1268a1 clang-format: Delete ForEachMacros (Jorge Timón) 5995735 scripted-diff: Remove #include <boost/foreach.hpp> (Jorge Timón) 3eff827 scripted-diff: Remove BOOST_REVERSE_FOREACH (Jorge Timón) 33aed5b Fix const_reverse_iterator constructor (pass const ptr) (Jorge Timón) 300851e Introduce src/reverse_iterator.hpp and include it... (Jorge Timón) Tree-SHA512: df3405328e9602d0a433ac134ba59a5c9a6202ef64188df2f94a59b2ce58dec7c988b25d0671c7937de516a96b2e6daeb9d04c82fa363b616ee4cf6e9cb0fac6
2017-06-22clang-format: Delete ForEachMacrosJorge Timón
2017-06-15Make clang-format use C++11 features (e.g. A<A<int>> instead of A<A<int> >)practicalswift
2017-01-28[doc] Remove unused clang format dev scriptMarcoFalke
Also, update the clang format file to reflect the current coding style mentioned in the developer notes.
2015-11-05[trivial] clang-format: Set AlignAfterOpenBracket: falseMarcoFalke
2014-07-28Update coding style and add .clang-formatPieter Wuille