Skip to content

Commit 0772e07

Browse files
Fix code formatting.
1 parent 23fcb80 commit 0772e07

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

clang/include/clang/Basic/SourceManager.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1261,7 +1261,8 @@ class SourceManager : public RefCountedBase<SourceManager> {
12611261
SourceLocation getRefinedSpellingLoc(SourceLocation Loc) const {
12621262
// Handle the non-mapped case inline, defer to out of line code to handle
12631263
// expansions.
1264-
if (Loc.isFileID()) return Loc;
1264+
if (Loc.isFileID())
1265+
return Loc;
12651266
return getRefinedSpellingLocSlowCase(Loc);
12661267
}
12671268

clang/lib/CodeGen/CGDebugInfo.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5531,8 +5531,7 @@ void CGDebugInfo::EmitDeclareOfBlockDeclRefVariable(
55315531
Ty = CreateSelfType(VD->getType(), Ty);
55325532

55335533
// Get location information.
5534-
const unsigned Line =
5535-
getLineNumber(Loc.isValid() ? Loc : CurLoc);
5534+
const unsigned Line = getLineNumber(Loc.isValid() ? Loc : CurLoc);
55365535
unsigned Column = getColumnNumber(Loc);
55375536

55385537
const llvm::DataLayout &target = CGM.getDataLayout();
@@ -5641,7 +5640,8 @@ void CGDebugInfo::EmitDeclareOfBlockLiteralArgVariable(const CGBlockInfo &block,
56415640
const BlockDecl *blockDecl = block.getBlockDecl();
56425641

56435642
// Collect some general information about the block's location.
5644-
SourceLocation loc = getRefinedSpellingLocation(blockDecl->getCaretLocation());
5643+
SourceLocation loc =
5644+
getRefinedSpellingLocation(blockDecl->getCaretLocation());
56455645
llvm::DIFile *tunit = getOrCreateFile(loc);
56465646
unsigned line = getLineNumber(loc);
56475647
unsigned column = getColumnNumber(loc);
@@ -6172,8 +6172,8 @@ void CGDebugInfo::EmitGlobalVariable(const ValueDecl *VD, const APValue &Init) {
61726172
}
61736173

61746174
GV.reset(DBuilder.createGlobalVariableExpression(
6175-
DContext, Name, StringRef(), Unit, getLineNumber(Loc), Ty,
6176-
true, true, InitExpr, getOrCreateStaticDataMemberDeclarationOrNull(VarD),
6175+
DContext, Name, StringRef(), Unit, getLineNumber(Loc), Ty, true, true,
6176+
InitExpr, getOrCreateStaticDataMemberDeclarationOrNull(VarD),
61776177
TemplateParameters, Align));
61786178
}
61796179

@@ -6192,8 +6192,8 @@ void CGDebugInfo::EmitExternalVariable(llvm::GlobalVariable *Var,
61926192
llvm::DIScope *DContext = getDeclContextDescriptor(D);
61936193
llvm::DIGlobalVariableExpression *GVE =
61946194
DBuilder.createGlobalVariableExpression(
6195-
DContext, Name, StringRef(), Unit, getLineNumber(Loc),
6196-
Ty, false, false, nullptr, nullptr, nullptr, Align);
6195+
DContext, Name, StringRef(), Unit, getLineNumber(Loc), Ty, false,
6196+
false, nullptr, nullptr, nullptr, Align);
61976197
Var->addDebugInfo(GVE);
61986198
}
61996199

@@ -6289,8 +6289,8 @@ void CGDebugInfo::AddStringLiteralDebugInfo(llvm::GlobalVariable *GV,
62896289
llvm::DIFile *File = getOrCreateFile(Loc);
62906290
llvm::DIGlobalVariableExpression *Debug =
62916291
DBuilder.createGlobalVariableExpression(
6292-
nullptr, StringRef(), StringRef(), File,
6293-
getLineNumber(Loc), getOrCreateType(S->getType(), File), true);
6292+
nullptr, StringRef(), StringRef(), File, getLineNumber(Loc),
6293+
getOrCreateType(S->getType(), File), true);
62946294
GV->addDebugInfo(Debug);
62956295
}
62966296

0 commit comments

Comments
 (0)