diff options
author | Luca Di Sera <luca.disera@qt.io> | 2024-03-24 21:03:55 +0100 |
---|---|---|
committer | Luca Di Sera <luca.disera@qt.io> | 2024-04-12 11:06:56 +0100 |
commit | 765142a59a613f1fb6c5542a6e5ab54f3682c699 (patch) | |
tree | fbc2c03d94faa564f6fbbecbfd014fd6b153be72 | |
parent | 51118878fd7ebe63654edb59a36dbc539883b807 (diff) |
QDoc: Remove CodeParser from PureDocParser
`CodeParser` is a legacy inheritance-based interface for components that
needs to parse a source file.
Recent changes to the code-base moved some of those components to a new
interface so that `CodeParser` is not required anymore.
Hence stop `PureDocParser` from inheriting from `CodeParser`.
Some unused methods that were inherited from `CodeParser` and are unused
were removed.
Task-number: QTBUG-111686
Change-Id: Ie2bf7b0d761750193fdb6d4d13558c6354b4939c
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
-rw-r--r-- | src/qdoc/qdoc/src/qdoc/puredocparser.cpp | 13 | ||||
-rw-r--r-- | src/qdoc/qdoc/src/qdoc/puredocparser.h | 8 |
2 files changed, 1 insertions, 20 deletions
diff --git a/src/qdoc/qdoc/src/qdoc/puredocparser.cpp b/src/qdoc/qdoc/src/qdoc/puredocparser.cpp index e1fc18728..c6de06a9c 100644 --- a/src/qdoc/qdoc/src/qdoc/puredocparser.cpp +++ b/src/qdoc/qdoc/src/qdoc/puredocparser.cpp @@ -11,19 +11,6 @@ QT_BEGIN_NAMESPACE /*! - Returns a list of the kinds of files that the pure doc - parser is meant to parse. The elements of the list are - file suffixes. - */ -QStringList PureDocParser::sourceFileNameFilter() -{ - return QStringList() << "*.qdoc" - << "*.qtx" - << "*.qtt" - << "*.js"; -} - -/*! Parses the source file identified by \a filePath and adds its parsed contents to the database. The \a location is used for reporting errors. diff --git a/src/qdoc/qdoc/src/qdoc/puredocparser.h b/src/qdoc/qdoc/src/qdoc/puredocparser.h index 76bec412d..d3467ed92 100644 --- a/src/qdoc/qdoc/src/qdoc/puredocparser.h +++ b/src/qdoc/qdoc/src/qdoc/puredocparser.h @@ -12,17 +12,11 @@ QT_BEGIN_NAMESPACE class Location; -class PureDocParser : public CodeParser +class PureDocParser { public: PureDocParser(const Location& location) : location{location} {} - ~PureDocParser() override = default; - void initializeParser() override {} - QString language() override { return "QDoc"; } - - QStringList sourceFileNameFilter() override; - void parseSourceFile(const Location &, const QString &, CppCodeParser&) override {} std::vector<UntiedDocumentation> parse_qdoc_file(const QString& filePath); private: |