[PATCH] D104604: [clang] NFC: add line break at the end of if expressions
Pengfei Wang via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 30 04:49:35 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG2fd75507d185: [clang] NFC: add line break at the end of if expressions (authored by zhouyizhou, committed by pengfei).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104604/new/
https://reviews.llvm.org/D104604
Files:
clang/lib/Sema/TreeTransform.h
Index: clang/lib/Sema/TreeTransform.h
===================================================================
--- clang/lib/Sema/TreeTransform.h
+++ clang/lib/Sema/TreeTransform.h
@@ -4322,10 +4322,10 @@
Arg, QualType(), getDerived().getBaseLocation());
}
-template<typename Derived>
+template <typename Derived>
bool TreeTransform<Derived>::TransformTemplateArgument(
- const TemplateArgumentLoc &Input,
- TemplateArgumentLoc &Output, bool Uneval) {
+ const TemplateArgumentLoc &Input, TemplateArgumentLoc &Output,
+ bool Uneval) {
const TemplateArgument &Arg = Input.getArgument();
switch (Arg.getKind()) {
case TemplateArgument::Null:
@@ -4374,7 +4374,8 @@
DI = InventTypeSourceInfo(Input.getArgument().getAsType());
DI = getDerived().TransformType(DI);
- if (!DI) return true;
+ if (!DI)
+ return true;
Output = TemplateArgumentLoc(TemplateArgument(DI->getType()), DI);
return false;
@@ -4390,9 +4391,8 @@
CXXScopeSpec SS;
SS.Adopt(QualifierLoc);
- TemplateName Template
- = getDerived().TransformTemplateName(SS, Arg.getAsTemplate(),
- Input.getTemplateNameLoc());
+ TemplateName Template = getDerived().TransformTemplateName(
+ SS, Arg.getAsTemplate(), Input.getTemplateNameLoc());
if (Template.isNull())
return true;
@@ -4414,11 +4414,13 @@
Sema::ExpressionEvaluationContextRecord::EK_TemplateArgument);
Expr *InputExpr = Input.getSourceExpression();
- if (!InputExpr) InputExpr = Input.getArgument().getAsExpr();
+ if (!InputExpr)
+ InputExpr = Input.getArgument().getAsExpr();
ExprResult E = getDerived().TransformExpr(InputExpr);
E = SemaRef.ActOnConstantExpression(E);
- if (E.isInvalid()) return true;
+ if (E.isInvalid())
+ return true;
Output = TemplateArgumentLoc(TemplateArgument(E.get()), E.get());
return false;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104604.355506.patch
Type: text/x-patch
Size: 2020 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210630/b506ff2d/attachment.bin>
More information about the cfe-commits
mailing list