@@ -24,15 +24,15 @@ loopEndingStmt(internal::Matcher<Stmt> Internal) {
24
24
callExpr (Internal, callee (functionDecl (isNoReturn ())))));
25
25
}
26
26
27
- // / \brief Return whether `S` is a reference to the declaration of `Var`.
27
+ // / Return whether `S` is a reference to the declaration of `Var`.
28
28
static bool isAccessForVar (const Stmt *S, const VarDecl *Var) {
29
29
if (const auto *DRE = dyn_cast<DeclRefExpr>(S))
30
30
return DRE->getDecl () == Var;
31
31
32
32
return false ;
33
33
}
34
34
35
- // / \brief Return whether `Var` has a pointer of reference in `S`.
35
+ // / Return whether `Var` has a pointer or reference in `S`.
36
36
static bool isPtrOrReferenceForVar (const Stmt *S, const VarDecl *Var) {
37
37
if (const auto *DS = dyn_cast<DeclStmt>(S)) {
38
38
for (const Decl *D : DS->getDeclGroup ()) {
@@ -50,7 +50,7 @@ static bool isPtrOrReferenceForVar(const Stmt *S, const VarDecl *Var) {
50
50
return false ;
51
51
}
52
52
53
- // / \brief Return whether `Var` has a pointer of reference in `S`.
53
+ // / Return whether `Var` has a pointer or reference in `S`.
54
54
static bool hasPtrOrReferenceInStmt (const Stmt *S, const VarDecl *Var) {
55
55
if (isPtrOrReferenceForVar (S, Var))
56
56
return true ;
@@ -66,13 +66,13 @@ static bool hasPtrOrReferenceInStmt(const Stmt *S, const VarDecl *Var) {
66
66
return false ;
67
67
}
68
68
69
- // / \brief Return whether `Var` has a pointer of reference in `Func`.
69
+ // / Return whether `Var` has a pointer or reference in `Func`.
70
70
static bool hasPtrOrReferenceInFunc (const FunctionDecl *Func,
71
71
const VarDecl *Var) {
72
72
return hasPtrOrReferenceInStmt (Func->getBody (), Var);
73
73
}
74
74
75
- // / \brief Return whether `Var` was changed in `LoopStmt`.
75
+ // / Return whether `Var` was changed in `LoopStmt`.
76
76
static bool isChanged (const Stmt *LoopStmt, const VarDecl *Var,
77
77
ASTContext *Context) {
78
78
if (const auto *ForLoop = dyn_cast<ForStmt>(LoopStmt))
@@ -88,8 +88,7 @@ static bool isChanged(const Stmt *LoopStmt, const VarDecl *Var,
88
88
return ExprMutationAnalyzer (*LoopStmt, *Context).isMutated (Var);
89
89
}
90
90
91
- // / \brief Return whether `Cond` is a variable that is possibly changed in
92
- // / `LoopStmt`.
91
+ // / Return whether `Cond` is a variable that is possibly changed in `LoopStmt`.
93
92
static bool isVarThatIsPossiblyChanged (const FunctionDecl *Func,
94
93
const Stmt *LoopStmt, const Stmt *Cond,
95
94
ASTContext *Context) {
@@ -116,7 +115,7 @@ static bool isVarThatIsPossiblyChanged(const FunctionDecl *Func,
116
115
return false ;
117
116
}
118
117
119
- // / \brief Return whether at least one variable of `Cond` changed in `LoopStmt`.
118
+ // / Return whether at least one variable of `Cond` changed in `LoopStmt`.
120
119
static bool isAtLeastOneCondVarChanged (const FunctionDecl *Func,
121
120
const Stmt *LoopStmt, const Stmt *Cond,
122
121
ASTContext *Context) {
@@ -133,7 +132,7 @@ static bool isAtLeastOneCondVarChanged(const FunctionDecl *Func,
133
132
return false ;
134
133
}
135
134
136
- // / \brief Return the variable names in `Cond`.
135
+ // / Return the variable names in `Cond`.
137
136
static std::string getCondVarNames (const Stmt *Cond) {
138
137
if (const auto *DRE = dyn_cast<DeclRefExpr>(Cond)) {
139
138
if (const auto *Var = dyn_cast<VarDecl>(DRE->getDecl ()))
0 commit comments