@@ -152,7 +152,7 @@ public srcSAXEventDispatch::PolicyListener {
152
152
void InitializeFunctionPolicyHandlers () {
153
153
using namespace srcSAXEventDispatch ;
154
154
// start of policy
155
- std::function<void (srcSAXEventContext& ctx)> functionStart = [this ](srcSAXEventContext& ctx) {
155
+ std::function<void (srcSAXEventContext& ctx)> startFunction = [this ](srcSAXEventContext& ctx) {
156
156
if (!functionDepth) {
157
157
functionDepth = ctx.depth ;
158
158
data = FunctionData{};
@@ -187,27 +187,27 @@ public srcSAXEventDispatch::PolicyListener {
187
187
};
188
188
189
189
// end of policy
190
- std::function<void (srcSAXEventContext& ctx)> functionEnd = [this ](srcSAXEventContext& ctx) {
190
+ std::function<void (srcSAXEventContext& ctx)> endFunction = [this ](srcSAXEventContext& ctx) {
191
191
if (functionDepth && functionDepth == ctx.depth ) {
192
192
functionDepth = 0 ;
193
193
NotifyAll (ctx);
194
194
InitializeFunctionPolicyHandlers ();
195
195
}
196
196
};
197
197
198
- openEventMap[ParserState::function] = functionStart ;
199
- openEventMap[ParserState::functiondecl] = functionStart ;
200
- openEventMap[ParserState::constructor] = functionStart ;
201
- openEventMap[ParserState::constructordecl] = functionStart ;
202
- openEventMap[ParserState::destructor] = functionStart ;
203
- openEventMap[ParserState::destructordecl] = functionStart ;
204
-
205
- closeEventMap[ParserState::function] = functionEnd ;
206
- closeEventMap[ParserState::functiondecl] = functionEnd ;
207
- closeEventMap[ParserState::constructor] = functionEnd ;
208
- closeEventMap[ParserState::constructordecl] = functionEnd ;
209
- closeEventMap[ParserState::destructor] = functionEnd ;
210
- closeEventMap[ParserState::destructordecl] = functionEnd ;
198
+ openEventMap[ParserState::function] = startFunction ;
199
+ openEventMap[ParserState::functiondecl] = startFunction ;
200
+ openEventMap[ParserState::constructor] = startFunction ;
201
+ openEventMap[ParserState::constructordecl] = startFunction ;
202
+ openEventMap[ParserState::destructor] = startFunction ;
203
+ openEventMap[ParserState::destructordecl] = startFunction ;
204
+
205
+ closeEventMap[ParserState::function] = endFunction ;
206
+ closeEventMap[ParserState::functiondecl] = endFunction ;
207
+ closeEventMap[ParserState::constructor] = endFunction ;
208
+ closeEventMap[ParserState::constructordecl] = endFunction ;
209
+ closeEventMap[ParserState::destructor] = endFunction ;
210
+ closeEventMap[ParserState::destructordecl] = endFunction ;
211
211
}
212
212
213
213
void CollectXMLAttributeHandlers () {}
0 commit comments