Skip to content
Snippets Groups Projects
Commit 6be67f65 authored by Eric Liu's avatar Eric Liu
Browse files

[clang-format] pass Style by reference instead of value.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@272465 91177308-0d34-0410-b5e6-96231b3b80d8
parent 44a5e636
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment