commit | 8ff690ab478b33e0d830a6203de12d191d94f8ff | [log] [tgz] |
---|---|---|
author | Daniel Jasper <djasper@google.com> | Wed Feb 06 14:22:40 2013 +0000 |
committer | Daniel Jasper <djasper@google.com> | Wed Feb 06 14:22:40 2013 +0000 |
tree | af093e6e11e4cdec73d16e5268f690f720f66113 | |
parent | 6b5ba8be528bf614d5f4477a4cdbd7c3b19714a6 [diff] |
Optionally derive formatting information from the input file. With this patch, clang-format can analyze the input file for two properties: 1. Is "int *a" or "int* a" more common. 2. Are non-C++03 constructs used, e.g. A<A<A>>. With Google-style, clang-format will now use the more common style for (1) and format C++03 compatible, unless it finds C++11 constructs in the input. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174504 91177308-0d34-0410-b5e6-96231b3b80d8