]> granicus.if.org Git - clang/commit
Fix indentation-detection at indent level 0.
authorManuel Klimek <klimek@google.com>
Fri, 8 Feb 2013 19:53:32 +0000 (19:53 +0000)
committerManuel Klimek <klimek@google.com>
Fri, 8 Feb 2013 19:53:32 +0000 (19:53 +0000)
commit52635ff9fb530dfdfc6a94e52a2270bf1bb8346b
treec09d57e13169f24069b205c57a512a40336c2a46
parent8185674528423e2504a1fae35c28c24104846510
Fix indentation-detection at indent level 0.

This correctly formats:
  {
    a;
  }
where { is incorrectly indented by 2, but is at level 0, when
reformatting only 'a;'.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174737 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/Format.cpp
unittests/Format/FormatTest.cpp