Skip to content

Commit 38f3ce5

Browse files
committed
run clang-format
1 parent e611d88 commit 38f3ce5

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

clang-tools-extra/clang-tidy/bugprone/SmartPtrArrayMismatchCheck.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ static bool isInSingleDeclStmt(const DeclaratorDecl *D) {
2828
return false;
2929
}
3030

31-
static const DeclaratorDecl *getConstructedVarOrField(const Expr *FoundConstructExpr,
32-
ASTContext &Ctx) {
31+
static const DeclaratorDecl *
32+
getConstructedVarOrField(const Expr *FoundConstructExpr, ASTContext &Ctx) {
3333
const DynTypedNodeList ConstructParents =
3434
Ctx.getParentMapContext().getParents(*FoundConstructExpr);
3535
if (ConstructParents.size() != 1)

clang-tools-extra/clang-tidy/modernize/UseEmplaceCheck.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,9 @@ static auto hasWantedType(llvm::ArrayRef<StringRef> TypeNames) {
9999

100100
// Matches member call expressions of the named method on the listed container
101101
// types.
102-
static auto cxxMemberCallExprOnContainer(StringRef MethodName,
103-
llvm::ArrayRef<StringRef> ContainerNames) {
102+
static auto
103+
cxxMemberCallExprOnContainer(StringRef MethodName,
104+
llvm::ArrayRef<StringRef> ContainerNames) {
104105
return cxxMemberCallExpr(
105106
hasDeclaration(functionDecl(hasName(MethodName))),
106107
on(hasTypeOrPointeeType(hasWantedType(ContainerNames))));
@@ -115,7 +116,8 @@ static const auto DefaultContainersWithPushFront =
115116
static const auto DefaultSmartPointers =
116117
"::std::shared_ptr; ::std::unique_ptr; ::std::auto_ptr; ::std::weak_ptr";
117118
static const auto DefaultTupleTypes = "::std::pair; ::std::tuple";
118-
static const auto DefaultTupleMakeFunctions = "::std::make_pair; ::std::make_tuple";
119+
static const auto DefaultTupleMakeFunctions =
120+
"::std::make_pair; ::std::make_tuple";
119121
static const auto DefaultEmplacyFunctions =
120122
"vector::emplace_back; vector::emplace;"
121123
"deque::emplace; deque::emplace_front; deque::emplace_back;"

clang-tools-extra/clang-tidy/utils/ExceptionAnalyzer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ ExceptionAnalyzer::ExceptionInfo &ExceptionAnalyzer::ExceptionInfo::merge(
4646
// FIXME: This could be ported to clang later.
4747

4848
static bool isUnambiguousPublicBaseClass(const Type *DerivedType,
49-
const Type *BaseType) {
49+
const Type *BaseType) {
5050
const auto *DerivedClass =
5151
DerivedType->getCanonicalTypeUnqualified()->getAsCXXRecordDecl();
5252
const auto *BaseClass =
@@ -192,7 +192,7 @@ static bool isFunctionPointerConvertible(QualType From, QualType To) {
192192
//
193193
// The function should only be called in C++ mode.
194194
static bool isQualificationConvertiblePointer(QualType From, QualType To,
195-
LangOptions LangOpts) {
195+
LangOptions LangOpts) {
196196

197197
// [N4659 7.5 (1)]
198198
// A cv-decomposition of a type T is a sequence of cv_i and P_i such that T is

0 commit comments

Comments
 (0)