@@ -254,7 +254,7 @@ class TrivialFunctionAnalysisVisitor
254
254
}
255
255
256
256
template <typename StmtType, typename CheckFunction>
257
- bool withCachedResult (const StmtType *S, CheckFunction Function) {
257
+ bool WithCachedResult (const StmtType *S, CheckFunction Function) {
258
258
// Insert false to the cache first to avoid infinite recursion.
259
259
auto [It, IsNew] = Cache.insert (std::make_pair (S, false ));
260
260
if (!IsNew)
@@ -278,7 +278,7 @@ class TrivialFunctionAnalysisVisitor
278
278
bool VisitCompoundStmt (const CompoundStmt *CS) {
279
279
// A compound statement is allowed as long each individual sub-statement
280
280
// is trivial.
281
- return withCachedResult (CS, [&]() { return VisitChildren (CS); });
281
+ return WithCachedResult (CS, [&]() { return VisitChildren (CS); });
282
282
}
283
283
284
284
bool VisitReturnStmt (const ReturnStmt *RS) {
@@ -291,16 +291,16 @@ class TrivialFunctionAnalysisVisitor
291
291
bool VisitDeclStmt (const DeclStmt *DS) { return VisitChildren (DS); }
292
292
bool VisitDoStmt (const DoStmt *DS) { return VisitChildren (DS); }
293
293
bool VisitIfStmt (const IfStmt *IS) {
294
- return withCachedResult (IS, [&]() { return VisitChildren (IS); });
294
+ return WithCachedResult (IS, [&]() { return VisitChildren (IS); });
295
295
}
296
296
bool VisitForStmt (const ForStmt *FS) {
297
- return withCachedResult (FS, [&]() { return VisitChildren (FS); });
297
+ return WithCachedResult (FS, [&]() { return VisitChildren (FS); });
298
298
}
299
299
bool VisitCXXForRangeStmt (const CXXForRangeStmt *FS) {
300
- return withCachedResult (FS, [&]() { return VisitChildren (FS); });
300
+ return WithCachedResult (FS, [&]() { return VisitChildren (FS); });
301
301
}
302
302
bool VisitWhileStmt (const WhileStmt *WS) {
303
- return withCachedResult (WS, [&]() { return VisitChildren (WS); });
303
+ return WithCachedResult (WS, [&]() { return VisitChildren (WS); });
304
304
}
305
305
bool VisitSwitchStmt (const SwitchStmt *SS) { return VisitChildren (SS); }
306
306
bool VisitCaseStmt (const CaseStmt *CS) { return VisitChildren (CS); }
0 commit comments