[llvm] df48e39 - [Clang] Fix clang-tidy errors.
Alexander Belyaev via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 25 12:18:47 PDT 2020
Author: Alexander Belyaev
Date: 2020-03-25T20:13:43+01:00
New Revision: df48e3920a56b128ad691c258372c641b076f21c
URL: https://github.com/llvm/llvm-project/commit/df48e3920a56b128ad691c258372c641b076f21c
DIFF: https://github.com/llvm/llvm-project/commit/df48e3920a56b128ad691c258372c641b076f21c.diff
LOG: [Clang] Fix clang-tidy errors.
Added:
Modified:
clang/include/clang/AST/Expr.h
clang/include/clang/Sema/Sema.h
clang/lib/AST/Expr.cpp
llvm/unittests/IR/KnowledgeRetentionTest.cpp
Removed:
################################################################################
diff --git a/clang/include/clang/AST/Expr.h b/clang/include/clang/AST/Expr.h
index fa4918272819..e566e3c6ab89 100644
--- a/clang/include/clang/AST/Expr.h
+++ b/clang/include/clang/AST/Expr.h
@@ -2026,7 +2026,8 @@ class PredefinedExpr final
static StringRef getIdentKindName(IdentKind IK);
static std::string ComputeName(IdentKind IK, const Decl *CurrentDecl);
- static std::string ComputeName(ASTContext &Ctx, IdentKind IK, const QualType Ty);
+ static std::string ComputeName(ASTContext &Context, IdentKind IK,
+ const QualType Ty);
SourceLocation getBeginLoc() const { return getLocation(); }
SourceLocation getEndLoc() const { return getLocation(); }
diff --git a/clang/include/clang/Sema/Sema.h b/clang/include/clang/Sema/Sema.h
index 841c030cecdb..b09b4eb0de1b 100644
--- a/clang/include/clang/Sema/Sema.h
+++ b/clang/include/clang/Sema/Sema.h
@@ -4824,7 +4824,7 @@ class Sema final {
SourceLocation RParen, ParsedType Ty);
ExprResult ActOnUniqueStableNameExpr(SourceLocation OpLoc,
SourceLocation LParen,
- SourceLocation RParen, Expr *Operand);
+ SourceLocation RParen, Expr *E);
bool CheckLoopHintExpr(Expr *E, SourceLocation Loc);
diff --git a/clang/lib/AST/Expr.cpp b/clang/lib/AST/Expr.cpp
index b603d2ab29ee..f0f22b6e4690 100644
--- a/clang/lib/AST/Expr.cpp
+++ b/clang/lib/AST/Expr.cpp
@@ -522,7 +522,7 @@ PredefinedExpr::PredefinedExpr(SourceLocation L, QualType FnTy, IdentKind IK,
}
PredefinedExpr::PredefinedExpr(SourceLocation L, QualType FnTy, IdentKind IK,
- Expr *Info)
+ Expr *E)
: Expr(PredefinedExprClass, FnTy, VK_LValue, OK_Ordinary) {
PredefinedExprBits.Kind = IK;
assert((getIdentKind() == IK) &&
@@ -531,7 +531,7 @@ PredefinedExpr::PredefinedExpr(SourceLocation L, QualType FnTy, IdentKind IK,
"Constructor only valid with UniqueStableNameExpr");
PredefinedExprBits.HasFunctionName = false;
PredefinedExprBits.Loc = L;
- setExpr(Info);
+ setExpr(E);
setDependence(computeDependence(this));
}
diff --git a/llvm/unittests/IR/KnowledgeRetentionTest.cpp b/llvm/unittests/IR/KnowledgeRetentionTest.cpp
index 2ed90b8b4e1e..2c923aaa7fbd 100644
--- a/llvm/unittests/IR/KnowledgeRetentionTest.cpp
+++ b/llvm/unittests/IR/KnowledgeRetentionTest.cpp
@@ -476,8 +476,7 @@ static void RunRandTest(uint64_t Seed, int Size, int MinCount, int MaxCount,
}
auto *Assume = cast<IntrinsicInst>(IntrinsicInst::Create(
- FnAssume, ArrayRef<Value *>({ConstantInt::getTrue(C)}),
- std::move(OpBundle)));
+ FnAssume, ArrayRef<Value *>({ConstantInt::getTrue(C)}), OpBundle));
Assume->insertBefore(&F->begin()->front());
RetainedKnowledgeMap Map;
fillMapFromAssume(*Assume, Map);
More information about the llvm-commits
mailing list