From: Manuel Klimek Date: Mon, 13 May 2013 12:53:04 +0000 (+0000) Subject: Fix style according to post-commit review comments. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=967d9e935d2379ea00726dc51fac5feeca50a4d0;p=clang Fix style according to post-commit review comments. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181701 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Format/WhitespaceManager.cpp b/lib/Format/WhitespaceManager.cpp index 21e38b1e97..7ffebacba5 100644 --- a/lib/Format/WhitespaceManager.cpp +++ b/lib/Format/WhitespaceManager.cpp @@ -143,9 +143,9 @@ std::string WhitespaceManager::getNewLineText(unsigned NewLines, } std::string WhitespaceManager::getIndentText(unsigned Spaces) { - if (!Style.UseTab) { + if (!Style.UseTab) return std::string(Spaces, ' '); - } + return std::string(Spaces / Style.IndentWidth, '\t') + std::string(Spaces % Style.IndentWidth, ' '); }