Skip to content

Commit 75b7612

Browse files
committed
clang-format
1 parent e45d907 commit 75b7612

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

clang/lib/CodeGen/CGExpr.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3447,8 +3447,7 @@ LValue CodeGenFunction::EmitPredefinedLValue(const PredefinedExpr *E) {
34473447
auto C = CGM.GetAddrOfConstantCString(Name, GVName);
34483448
return MakeAddrLValue(C, E->getType(), AlignmentSource::Decl);
34493449
} else {
3450-
auto C =
3451-
CGM.GetAddrOfConstantCString(std::string(FnName), GVName);
3450+
auto C = CGM.GetAddrOfConstantCString(std::string(FnName), GVName);
34523451
return MakeAddrLValue(C, E->getType(), AlignmentSource::Decl);
34533452
}
34543453
}

clang/lib/CodeGen/CodeGenModule.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6920,8 +6920,8 @@ CodeGenModule::GetAddrOfConstantStringFromObjCEncode(const ObjCEncodeExpr *E) {
69206920
/// GetAddrOfConstantCString - Returns a pointer to a character array containing
69216921
/// the literal and a terminating '\0' character.
69226922
/// The result has pointer to array type.
6923-
ConstantAddress CodeGenModule::GetAddrOfConstantCString(
6924-
const std::string &Str, StringRef GlobalName) {
6923+
ConstantAddress CodeGenModule::GetAddrOfConstantCString(const std::string &Str,
6924+
StringRef GlobalName) {
69256925
StringRef StrWithNull(Str.c_str(), Str.size() + 1);
69266926
CharUnits Alignment = getContext().getAlignOfGlobalVarInChars(
69276927
getContext().CharTy, /*VD=*/nullptr);

clang/lib/CodeGen/CodeGenModule.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,9 +1185,8 @@ class CodeGenModule : public CodeGenTypeCache {
11851185
///
11861186
/// \param GlobalName If provided, the name to use for the global (if one is
11871187
/// created).
1188-
ConstantAddress
1189-
GetAddrOfConstantCString(const std::string &Str,
1190-
StringRef GlobalName = ".str");
1188+
ConstantAddress GetAddrOfConstantCString(const std::string &Str,
1189+
StringRef GlobalName = ".str");
11911190

11921191
/// Returns a pointer to a constant global variable for the given file-scope
11931192
/// compound literal expression.

0 commit comments

Comments
 (0)