#include "clang/Analysis/Analyses/CalledOnceCheck.h"
Definition at line 47 of file CalledOnceCheck.h.
◆ CalledOnceCheckHandler() clang::CalledOnceCheckHandler::CalledOnceCheckHandler ( ) default ◆ ~CalledOnceCheckHandler() virtual clang::CalledOnceCheckHandler::~CalledOnceCheckHandler ( ) virtualdefault ◆ handleBlockThatIsGuaranteedToBeCalledOnce() virtual void clang::CalledOnceCheckHandler::handleBlockThatIsGuaranteedToBeCalledOnce ( const BlockDecl * Block ) inlinevirtualCalled when the block is guaranteed to be called exactly once.
It means that we can be stricter with what we report on that block.
Definition at line 99 of file CalledOnceCheck.h.
◆ handleBlockWithNoGuarantees() virtual void clang::CalledOnceCheckHandler::handleBlockWithNoGuarantees ( const BlockDecl * Block ) inlinevirtualCalled when the block has no guarantees about how many times it can get called.
It means that we should be more lenient with reporting warnings in it.
Definition at line 105 of file CalledOnceCheck.h.
◆ handleCapturedNeverCalled() virtual void clang::CalledOnceCheckHandler::handleCapturedNeverCalled ( const ParmVarDecl * Parameter, const Decl * Where, bool IsCompletionHandler ) inlinevirtualCalled when captured parameter is not called at all.
Parameter
IsCompletionHandler – true, if parameter is a completion handler.
Definition at line 73 of file CalledOnceCheck.h.
◆ handleDoubleCall() virtual void clang::CalledOnceCheckHandler::handleDoubleCall ( const ParmVarDecl * Parameter, const Expr * Call, const Expr * PrevCall, bool IsCompletionHandler, bool Poised ) inlinevirtualCalled when parameter is called twice.
Definition at line 59 of file CalledOnceCheck.h.
◆ handleNeverCalled() [1/2] virtual void clang::CalledOnceCheckHandler::handleNeverCalled ( const ParmVarDecl * Parameter, bool IsCompletionHandler ) inlinevirtualCalled when parameter is not called at all.
Definition at line 66 of file CalledOnceCheck.h.
◆ handleNeverCalled() [2/2]Called when parameter is not called on one of the paths.
Usually we try to find a statement that is the least common ancestor of the path containing the call and not containing the call. This helps us to pinpoint a bad path for the user.
Definition at line 89 of file CalledOnceCheck.h.
The documentation for this class was generated from the following file:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4