]> granicus.if.org Git - clang/commitdiff
[clang-format] pass Style by reference instead of value.
authorEric Liu <ioeric@google.com>
Sat, 11 Jun 2016 11:45:08 +0000 (11:45 +0000)
committerEric Liu <ioeric@google.com>
Sat, 11 Jun 2016 11:45:08 +0000 (11:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@272465 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Format/Format.cpp

index 7ef9a30e4917b44e7761cedec3bbe4c99c4beeb0..c7a7bfe2106b4d4753c0c4d6fae3132c5b4a505e 100644 (file)
@@ -1457,7 +1457,7 @@ bool checkAndConsumeDirectiveWithName(Lexer &Lex, StringRef Name, Token &Tok) {
 
 unsigned getOffsetAfterHeaderGuardsAndComments(StringRef FileName,
                                                StringRef Code,
-                                               FormatStyle Style) {
+                                               const FormatStyle &Style) {
   std::unique_ptr<Environment> Env =
       Environment::CreateVirtualEnvironment(Code, FileName, /*Ranges=*/{});
   const SourceManager &SourceMgr = Env->getSourceManager();