diff options
author | David Boddie <david.boddie@nokia.com> | 2010-11-24 18:33:21 (GMT) |
---|---|---|
committer | David Boddie <david.boddie@nokia.com> | 2010-11-24 18:33:21 (GMT) |
commit | 9529188304b47d3fdb39cec52ad233f37a477f2f (patch) | |
tree | b5c53e65cb56a553e54a6ed54e1e1c642e464223 /tools/qdoc3/codeparser.h | |
parent | f79dfe06afe9aae34e064b5668cc3429f659dd16 (diff) | |
download | Qt-9529188304b47d3fdb39cec52ad233f37a477f2f.zip Qt-9529188304b47d3fdb39cec52ad233f37a477f2f.tar.gz Qt-9529188304b47d3fdb39cec52ad233f37a477f2f.tar.bz2 |
Refactored use of parsers to parse files based on their types.
The full range of file types is specified in the configuration file.
Each parser is asked if it handles each file.
The pure documentation parser conceptually handles qdoc files, but it
uses the same code as the C++ parser.
Diffstat (limited to 'tools/qdoc3/codeparser.h')
-rw-r--r-- | tools/qdoc3/codeparser.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/qdoc3/codeparser.h b/tools/qdoc3/codeparser.h index ebba601..2d11ee0 100644 --- a/tools/qdoc3/codeparser.h +++ b/tools/qdoc3/codeparser.h @@ -66,8 +66,8 @@ class CodeParser virtual void initializeParser(const Config& config); virtual void terminateParser(); virtual QString language() = 0; - virtual QString headerFileNameFilter(); - virtual QString sourceFileNameFilter() = 0; + virtual QStringList headerFileNameFilter(); + virtual QStringList sourceFileNameFilter() = 0; virtual void parseHeaderFile(const Location& location, const QString& filePath, Tree *tree); virtual void parseSourceFile(const Location& location, @@ -78,6 +78,8 @@ class CodeParser static void initialize(const Config& config); static void terminate(); static CodeParser *parserForLanguage(const QString& language); + static CodeParser *parserForHeaderFile(const QString &filePath); + static CodeParser *parserForSourceFile(const QString &filePath); static const QString titleFromName(const QString& name); protected: |