41 auto Loop = mapAnyOf(forStmt, cxxForRangeStmt, whileStmt, doStmt);
42 auto NestedLoop = Loop.with(hasAncestor(Loop));
44 const ast_matchers::internal::Matcher<GotoStmt> Anything = anything();
46 Finder->addMatcher(gotoStmt(IgnoreMacros ? unless(isInMacro()) : Anything,
47 anyOf(unless(hasAncestor(NestedLoop)),
48 unless(isForwardJumping())))
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.