fileparser.h
Go to the documentation of this file.
1 /******************************************************************************
2  *
3  * Copyright (C) 1997-2015 by Dimitri van Heesch.
4  *
5  * Permission to use, copy, modify, and distribute this software and its
6  * documentation under the terms of the GNU General Public License is hereby
7  * granted. No representations are made about the suitability of this software
8  * for any purpose. It is provided "as is" without express or implied warranty.
9  * See the GNU General Public License for more details.
10  *
11  * Documents produced by Doxygen are derivative works derived from the
12  * input used in their production; they are not affected by this license.
13  *
14  */
15 
16 #ifndef FILEPARSER_H
17 #define FILEPARSER_H
18 
19 #include "parserintf.h"
20 
21 /** @brief General file parser */
23 {
24  public:
25  virtual ~FileParser() {}
26  void startTranslationUnit(const char *) {}
28  void parseInput(const char *, const char *,Entry *, bool, QStrList &) {}
29  bool needsPreprocessing(const QCString &) { return FALSE; }
30  void parseCode(CodeOutputInterface &codeOutIntf,
31  const char *scopeName,
32  const QCString &input,
33  SrcLangExt lang,
34  bool isExampleBlock,
35  const char *exampleName=0,
36  FileDef *fileDef=0,
37  int startLine=-1,
38  int endLine=-1,
39  bool inlineFragment=FALSE,
40  MemberDef *memberDef=0,
41  bool showLineNumbers=TRUE,
42  Definition *searchCtx=0,
43  bool collectXRefs=TRUE
44  );
46  void parsePrototype(const char *) {}
47 };
48 
49 
50 #endif
Definition: entry.h:63
Abstract interface for programming language parsers.
Definition: parserintf.h:38
const bool FALSE
Definition: qglobal.h:370
bool needsPreprocessing(const QCString &)
Definition: fileparser.h:29
void parsePrototype(const char *)
Definition: fileparser.h:46
SrcLangExt
Definition: types.h:41
void parseCode(CodeOutputInterface &codeOutIntf, const char *scopeName, const QCString &input, SrcLangExt lang, bool isExampleBlock, const char *exampleName=0, FileDef *fileDef=0, int startLine=-1, int endLine=-1, bool inlineFragment=FALSE, MemberDef *memberDef=0, bool showLineNumbers=TRUE, Definition *searchCtx=0, bool collectXRefs=TRUE)
Definition: fileparser.cpp:19
static int input(void)
Definition: code.cpp:15695
General file parser.
Definition: fileparser.h:22
void resetCodeParserState()
Definition: fileparser.h:45
virtual ~FileParser()
Definition: fileparser.h:25
void startTranslationUnit(const char *)
Definition: fileparser.h:26
void parseInput(const char *, const char *, Entry *, bool, QStrList &)
Definition: fileparser.h:28
const bool TRUE
Definition: qglobal.h:371
bool collectXRefs
void finishTranslationUnit()
Definition: fileparser.h:27