Skip to content

Incompatible function declarations in CheckerDocumentation.cpp #73764

@chaosrai

Description

@chaosrai

I have identified the following incompatible function declarations when browsing the CheckerDocumentation.cpp, while the functions are accually used in Checker.h.

  1. evalCall
    declared in CheckerDocumentation.cpp: bool evalCall(const CallExpr *CE, CheckerContext &C)
    used in Checker.h: bool evalCall(const CallEvent &Call, CheckerContext &C)

  2. checkNewAllocator
    declared in CheckerDocumentation.cpp: void checkNewAllocator(const CXXNewExpr *NE, SVal Target, CheckerContext &)
    used in Checker.h: void checkNewAllocator(const CXXAllocatorCall &Call, CheckerContext &C)

And then there is a check point added in Checker.h but lost in the CheckerDocumentation.cpp:

  1. ASTCodeBody
    void checkASTCodeBody(const Decl *D, AnalysisManager& mgr, BugReporter &BR)

These changes in Checker.h had better reflect in the CheckerDocumentation.cpp because newcomers like me will view it. This issue may belong to clang:static analyzer and documentation I guess.
Thanks :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions