From 967d9e935d2379ea00726dc51fac5feeca50a4d0 Mon Sep 17 00:00:00 2001 From: Manuel Klimek Date: Mon, 13 May 2013 12:53:04 +0000 Subject: [PATCH] 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 --- lib/Format/WhitespaceManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, ' '); } -- 2.40.0