Changeset View
Changeset View
Standalone View
Standalone View
include/clang/StaticAnalyzer/Core/CheckerManager.h
Context not available. | |||||
template <typename EVENT> | template <typename EVENT> | ||||
void _registerListenerForEvent(CheckEventFunc checkfn) { | void _registerListenerForEvent(CheckEventFunc checkfn) { | ||||
EventInfo &info = Events[getTag<EVENT>()]; | EventInfo &info = Events[&EVENT::Tag]; | ||||
info.Checkers.push_back(checkfn); | info.Checkers.push_back(checkfn); | ||||
} | } | ||||
template <typename EVENT> | template <typename EVENT> | ||||
void _registerDispatcherForEvent() { | void _registerDispatcherForEvent() { | ||||
EventInfo &info = Events[getTag<EVENT>()]; | EventInfo &info = Events[&EVENT::Tag]; | ||||
info.HasDispatcher = true; | info.HasDispatcher = true; | ||||
} | } | ||||
template <typename EVENT> | template <typename EVENT> | ||||
void _dispatchEvent(const EVENT &event) const { | void _dispatchEvent(const EVENT &event) const { | ||||
EventsTy::const_iterator I = Events.find(getTag<EVENT>()); | EventsTy::const_iterator I = Events.find(&EVENT::Tag); | ||||
if (I == Events.end()) | if (I == Events.end()) | ||||
return; | return; | ||||
const EventInfo &info = I->second; | const EventInfo &info = I->second; | ||||
Context not available. |