[Clang] Fix clang-tidy errors.

This commit is contained in:
Alexander Belyaev 2020-03-25 20:13:43 +01:00
parent d8981ce5b9
commit df48e3920a
4 changed files with 6 additions and 6 deletions

View File

@ -2026,7 +2026,8 @@ public:
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(); }

View File

@ -4824,7 +4824,7 @@ public:
SourceLocation RParen, ParsedType Ty);
ExprResult ActOnUniqueStableNameExpr(SourceLocation OpLoc,
SourceLocation LParen,
SourceLocation RParen, Expr *Operand);
SourceLocation RParen, Expr *E);
bool CheckLoopHintExpr(Expr *E, SourceLocation Loc);

View File

@ -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));
}

View File

@ -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);