start a new line of code, inserting a line number if yyextra->sourceFileDef is true. If a definition starts at the current line, then the line number is linked to the documentation of that definition.
253{
254 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
255 if (yyextra->sourceFileDef)
256 {
257 const Definition *d = yyextra->sourceFileDef->getSourceDefinition(yyextra->yyLineNr);
The common base class of all entity definitions found in the sources.
258
260 {
261 yyextra->currentDefinition = d;
262 yyextra->currentMemberDef = yyextra->sourceFileDef->getSourceMember(yyextra->yyLineNr);
263
264 yyextra->classScope = d->
name();
266 lineAnchor.
sprintf(
"l%05d",yyextra->yyLineNr);
267 if (yyextra->currentMemberDef)
268 {
269 yyextra->code->writeLineNumber(yyextra->currentMemberDef->getReference(),
270 yyextra->currentMemberDef->getOutputFileBase(),
271 yyextra->currentMemberDef->anchor(),yyextra->yyLineNr,
272 !yyextra->includeCodeFragment);
274 }
275 else
276 {
280 !yyextra->includeCodeFragment);
282 }
283 }
284 else
285 {
287 !yyextra->includeCodeFragment);
288 }
289 }
virtual bool isLinkableInProject() const =0
virtual QCString getReference() const =0
virtual QCString getOutputFileBase() const =0
virtual const QCString & name() const =0
This is an alternative implementation of QCString.
QCString & sprintf(const char *format,...)
static void setCurrentDoc(yyscan_t yyscanner, const QCString &anchor)
290
291 yyextra->code->startCodeLine(yyextra->yyLineNr);
292 yyextra->insideCodeLine = true;
293
294 if (yyextra->currentFontClass)
295 {
296 yyextra->code->startFontClass(yyextra->currentFontClass);
297 }
298}