]> granicus.if.org Git - clang/commit
Keep track of indentation levels in static initializers for correct indentation with...
authorAlexander Kornienko <alexfh@google.com>
Mon, 14 Oct 2013 00:46:35 +0000 (00:46 +0000)
committerAlexander Kornienko <alexfh@google.com>
Mon, 14 Oct 2013 00:46:35 +0000 (00:46 +0000)
commitf0fc89c358cdd0717c0e12eb4a90e4a6ce956e98
treec64ebcbfca145234391887686b7d082467ee578f
parent8bfc1e118169229960b90a4ef8761ee0eb296755
Keep track of indentation levels in static initializers for correct indentation with tabs.

Summary:
Store IndentationLevel in ParentState and use it instead of the
Line::Level when indening.
Also fixed incorrect indentation level calculation in formatFirstToken.

Reviewers: djasper

Reviewed By: djasper

CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D1797

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