39 void check(
const ast_matchers::MatchFinder::MatchResult &Result)
override;
45 enum class CommentKind {
51 const unsigned StrictMode : 1;
52 const unsigned IgnoreMacros : 1;
53 const unsigned IgnoreSingleArgument : 1;
54 const unsigned CommentAnonymousInitLists : 1;
55 const unsigned CommentBoolLiterals : 1;
56 const unsigned CommentCharacterLiterals : 1;
57 const unsigned CommentFloatLiterals : 1;
58 const unsigned CommentNullPtrs : 1;
59 const unsigned CommentParenthesizedTemporaries : 1;
60 const unsigned CommentStringLiterals : 1;
61 const unsigned CommentTypedInitLists : 1;
62 const unsigned CommentUserDefinedLiterals : 1;
63 const std::vector<StringRef> IgnoredParameterNames;
64 std::vector<llvm::Regex> IgnoredParameterNameRegexes;
66 const std::vector<StringRef> NullPtrMacros;
67 const std::vector<StringRef> BoolLiteralMacros;
70 void checkCallArgs(ASTContext *Ctx,
const FunctionDecl *Callee,
71 SourceLocation ArgBeginLoc, SourceLocation CloseLoc,
72 llvm::ArrayRef<const Expr *> Args);
74 CommentKind shouldAddComment(
const Expr *Arg,
const ASTContext &Ctx)
const;
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.