Skip to content

Commit b801e35

Browse files
committed
[nfc] apply clang format
1 parent 70a4ab9 commit b801e35

File tree

5 files changed

+273
-171
lines changed

5 files changed

+273
-171
lines changed

clang-tools-extra/clang-tidy/modernize/LoopConvertUtils.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ class StmtAncestorASTVisitor
7272
/// Accessor for DeclParents.
7373
const DeclParentMap &getDeclToParentStmtMap() { return DeclParents; }
7474

75-
friend class clang::RecursiveASTVisitorBase<StmtAncestorASTVisitor, /*Const=*/false>;
75+
friend class clang::RecursiveASTVisitorBase<StmtAncestorASTVisitor,
76+
/*Const=*/false>;
7677

7778
private:
7879
StmtParentMap StmtAncestors;
@@ -98,7 +99,8 @@ class ComponentFinderASTVisitor
9899
/// Accessor for Components.
99100
const ComponentVector &getComponents() { return Components; }
100101

101-
friend class clang::RecursiveASTVisitorBase<ComponentFinderASTVisitor, /*Const=*/false>;
102+
friend class clang::RecursiveASTVisitorBase<ComponentFinderASTVisitor,
103+
/*Const=*/false>;
102104

103105
private:
104106
ComponentVector Components;
@@ -155,7 +157,8 @@ class DependencyFinderASTVisitor
155157
return DependsOnInsideVariable;
156158
}
157159

158-
friend class clang::RecursiveASTVisitorBase<DependencyFinderASTVisitor, /*Const=*/false>;
160+
friend class clang::RecursiveASTVisitorBase<DependencyFinderASTVisitor,
161+
/*Const=*/false>;
159162

160163
private:
161164
const StmtParentMap *StmtParents;
@@ -188,7 +191,8 @@ class DeclFinderASTVisitor
188191
return Found;
189192
}
190193

191-
friend class clang::RecursiveASTVisitorBase<DeclFinderASTVisitor, /*Const=*/false>;
194+
friend class clang::RecursiveASTVisitorBase<DeclFinderASTVisitor,
195+
/*Const=*/false>;
192196

193197
private:
194198
std::string Name;

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ static bool paramReferredExactlyOnce(const CXXConstructorDecl *Ctor,
9595
/// \see ExactlyOneUsageVisitor::hasExactlyOneUsageIn()
9696
class ExactlyOneUsageVisitor
9797
: public RecursiveASTVisitor<ExactlyOneUsageVisitor> {
98-
friend class RecursiveASTVisitorBase<ExactlyOneUsageVisitor, /*Const=*/false>;
98+
friend class RecursiveASTVisitorBase<ExactlyOneUsageVisitor,
99+
/*Const=*/false>;
99100

100101
public:
101102
ExactlyOneUsageVisitor(const ParmVarDecl *ParamDecl)

clang-tools-extra/clangd/AST.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ QualType declaredType(const TypeDecl *D);
168168
/// Retrieves the deduced type at a given location (auto, decltype).
169169
/// It will return the underlying type.
170170
/// If the type is an undeduced auto, returns the type itself.
171-
std::optional<QualType> getDeducedType(const ASTContext &, const HeuristicResolver *,
171+
std::optional<QualType> getDeducedType(const ASTContext &,
172+
const HeuristicResolver *,
172173
SourceLocation Loc);
173174

174175
// Find the abbreviated-function-template `auto` within a type, or returns null.

0 commit comments

Comments
 (0)