зеркало из https://github.com/microsoft/clang-1.git
[analyzer] Document existence of ConstPointerEscape.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178311 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
41988f331a
Коммит
123243cfd8
|
@ -52,6 +52,7 @@ class CheckerDocumentation : public Checker< check::PreStmt<ReturnStmt>,
|
|||
check::LiveSymbols,
|
||||
check::RegionChanges,
|
||||
check::PointerEscape,
|
||||
check::ConstPointerEscape,
|
||||
check::Event<ImplicitNullDerefEvent>,
|
||||
check::ASTDecl<FunctionDecl> > {
|
||||
public:
|
||||
|
@ -274,6 +275,17 @@ public:
|
|||
return State;
|
||||
}
|
||||
|
||||
/// \brief Called when const pointers escape.
|
||||
///
|
||||
/// Note: in most cases checkPointerEscape callback is sufficient.
|
||||
/// \sa checkPointerEscape
|
||||
ProgramStateRef checkConstPointerEscape(ProgramStateRef State,
|
||||
const InvalidatedSymbols &Escaped,
|
||||
const CallEvent *Call,
|
||||
PointerEscapeKind Kind) const {
|
||||
return State;
|
||||
}
|
||||
|
||||
/// check::Event<ImplicitNullDerefEvent>
|
||||
void checkEvent(ImplicitNullDerefEvent Event) const {}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче