<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/73764>73764</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Incompatible function declarations in CheckerDocumentation.cpp
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
phyhac
</td>
</tr>
</table>
<pre>
I have identified the following incompatible function declarations when browsing the [CheckerDocumentation.cpp](https://github.com/llvm/llvm-project/blob/main/clang/lib/StaticAnalyzer/Checkers/CheckerDocumentation.cpp), while the functions are accually used in [Checker.h](https://github.com/llvm/llvm-project/blob/main/clang/include/clang/StaticAnalyzer/Core/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 lost in the CheckerDocumentation.cpp:
1. ASTCodeBody
`void checkASTCodeBody(const Decl *D, AnalysisManager& mgr, BugReporter &BR)`
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyslM9uqzoQxp_GbEYXgSEQFixI0khd3C7a6qpbY0_A9zg2sk3SnKc_MiRNpP5TpbMhxGPPfL-P8TDnZKcRa7JYkcUmYqPvja2H_tQzHrVGnOp76NkBQQrUXu4kCvA9ws4oZY5SdyA1N_uBedkqhN2ouZdGg0CumGXh3cGxRw2tNUcXDoTjZLFa98h_od0YPu5R-2lrzIeBLDaELnvvB0eyhtAtodtO-n5sY272hG6VOlx-_hms-R-5J3TbKtMSut0zqQndcsV0FzbJsPgUsvNGM3X6jZbQ7bm2u76-l0ErQtdw7KXCmfiM5oBZBMb5yJQ6wehQgNQ3RHH_VxGk5moUeLPyHsdYvKLEPaFVTJINSZr5mcaAB6bWTKl5Yf46s_BPDcgaIEXSGqOup-mSG-08hD93r4MFQpv1XTDqnGZttMdXD4QW62BhkcBc8uLTVeS3-Q-o50RT5IsSt6w0Bh72PeCxUcpw5o39MfTBSPFBmjd1Ly8PeLzwP0z8T_8xBc_Mdug_1nor9TMzvq_7thhM-bE5jZ5urw4PiyAdsLkcDEZqD8o4H3SFfv_Coreuap6e10bgyojTucwtw230grBBHmQ3m6B5amEn3b9Msy50cgH7zobIauwecTDWY7C4WD3eskSizkSVVSzCOi2TlOZFmWZRX2d5WuW0YmW6yGlBS54uk5aWfCeqJF2IMpI1TWiWprRKllm6yOJM7HiZtplo84SXOSN5gnsmVRyuZmxsF0nnRqzLrCzySLEWlZtmJaUajzAFCaVhdNp6us7t2DmSJ0o6765ZvPQK6_vvR-UXvRmNVtU_HiqTxDDoJoQ_AQAA__9HHfI4">