diff options
| author | Eric Liu <ioeric@google.com> | 2016-06-11 11:45:08 +0000 |
|---|---|---|
| committer | Eric Liu <ioeric@google.com> | 2016-06-11 11:45:08 +0000 |
| commit | 43d67b6883974a5abef416d2e4bbd130de071856 (patch) | |
| tree | 2dc55bb72b7dfe1f118853a6e6036cc7b2658b4a /clang/lib | |
| parent | d386941676e0ce42dbdf82b1ff29e6d7bd145fcc (diff) | |
| download | bcm5719-llvm-43d67b6883974a5abef416d2e4bbd130de071856.tar.gz bcm5719-llvm-43d67b6883974a5abef416d2e4bbd130de071856.zip | |
[clang-format] pass Style by reference instead of value.
llvm-svn: 272465
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Format/Format.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index 7ef9a30e491..c7a7bfe2106 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/lib/Format/Format.cpp @@ -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(); |

