summaryrefslogtreecommitdiff
path: root/.clang-format
AgeCommit message (Collapse)Author
2017-04-15Make clang-format use C++03 syntaxEric Fiselier
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@300387 91177308-0d34-0410-b5e6-96231b3b80d8
2017-01-14Tweak .clang-format configuration.Eric Fiselier
Remove the custom configuration options for brace wrapping. They don't work well for inline functions or type-traits classes. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@291998 91177308-0d34-0410-b5e6-96231b3b80d8
2017-01-03clang-format: tweak configurationSaleem Abdulrasool
Update the configuration to reflect the style more accurately. Pointers are tied to the left. Braces are split on classes/structs and functions. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290857 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-09fix misspelling in .clang-formatEric Fiselier
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@289178 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-09Turn off header sorting and comment formattingEric Fiselier
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@289177 91177308-0d34-0410-b5e6-96231b3b80d8
2016-11-23[libcxx] Fix max_size() across all containersEric Fiselier
Summary: The `max_size()` method of containers should respect both the allocator's reported `max_size` and the range of the `difference_type`. This patch makes all containers choose the smallest of those two values. Reviewers: mclow.lists, EricWF Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D26885 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@287729 91177308-0d34-0410-b5e6-96231b3b80d8
2016-11-15Add .clang-format to libc++Eric Fiselier
Adding a Clang Format file to libc++ and which style it should use has been discussed a couple of times. This patch finally adds a .clang-format file which specifies LLVM styles. Personally I dislike how the LLVM style handles much of the meta-programming in libc++. However the general consensus was that libc++ should prefer the LLVM style and make adjustments where needed. Note that using clang-format on changes is not required, especially for changes within the headers. However formatting tests should be encouraged. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@287020 91177308-0d34-0410-b5e6-96231b3b80d8