diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2013-05-12 13:04:34 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2013-05-12 13:04:34 (GMT) |
commit | 7b57ba3ce34b08841026da979dd9139f08033800 (patch) | |
tree | 97f0e23b93d45b7917d965e6d1bb70da6c61831a /src/parserintf.h | |
parent | 465c47b8d0e945f9911c579c0c93deaf87c20fd6 (diff) | |
download | Doxygen-7b57ba3ce34b08841026da979dd9139f08033800.zip Doxygen-7b57ba3ce34b08841026da979dd9139f08033800.tar.gz Doxygen-7b57ba3ce34b08841026da979dd9139f08033800.tar.bz2 |
Release-1.8.3.1-20130512
Diffstat (limited to 'src/parserintf.h')
-rw-r--r-- | src/parserintf.h | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/src/parserintf.h b/src/parserintf.h index fa9184c..0274c13 100644 --- a/src/parserintf.h +++ b/src/parserintf.h @@ -19,6 +19,7 @@ #define PARSERINTF_H #include <qdict.h> +#include <qstrlist.h> class Entry; class FileDef; @@ -36,15 +37,37 @@ class ParserInterface { public: virtual ~ParserInterface() {} + + /** Starts processing a translation unit (source files + headers). + * After this call parseInput() is called with sameTranslationUnit + * set to FALSE. If parseInput() returns additional include files, + * these are also processed using parseInput() with + * sameTranslationUnit set to TRUE. After that + * finishTranslationUnit() is called. + */ + virtual void startTranslationUnit(const char *fileName) = 0; + + /** Called after all files in a translation unit have been + * processed. + */ + virtual void finishTranslationUnit() = 0; + /** Parses a single input file with the goal to build an Entry tree. * @param[in] fileName The full name of the file. * @param[in] fileBuf The contents of the file (zero terminated). * @param[in,out] root The root of the tree of Entry *nodes * representing the information extracted from the file. + * @param[in] sameTranslationUnit TRUE if this file was found in the same + * translation unit (in the filesInSameTranslationUnit list + * returned for another file). + * @param[in,out] filesInSameTranslationUnit other files expected to be + * found in the same translation unit (used for libclang) */ virtual void parseInput(const char *fileName, const char *fileBuf, - Entry *root) = 0; + Entry *root, + bool sameTranslationUnit, + QStrList &filesInSameTranslationUnit) = 0; /** Returns TRUE if the language identified by \a extension needs * the C preprocessor to be run before feed the result to the input |