14
15
16
17
21 if (!in.open(QIODevice::ReadOnly)) {
23 QStringLiteral(
"Can't open source file '%1' (%2)").arg(filePath, strerror(errno)));
27 return processQdocComments(in);
31
32
33
34
35std::vector<UntiedDocumentation>
PureDocParser::processQdocComments(QFile& input_file)
37 std::vector<UntiedDocumentation> untied{};
41 const QSet<QString> &commands = CppCodeParser::topic_commands + CppCodeParser::meta_commands;
49 QString comment = tokenizer.lexeme();
53 Doc::trimCStyleComment(start_loc, comment);
57 Doc doc(start_loc, end_loc, comment, commands, CppCodeParser::topic_commands);
59 doc
.location().warning(QStringLiteral(
"This qdoc comment contains no topic command "
60 "(e.g., '\\%1', '\\%2').")
const Location & location() const
Returns the starting location of a qdoc comment.
TopicList topicsUsed() const
Returns a reference to the list of topic commands used in the current qdoc comment.
The Location class provides a way to mark a location in a file.
Location(const Location &other)
The copy constructor copies the contents of other into this Location using the assignment operator.
std::vector< UntiedDocumentation > parse_qdoc_file(const QString &filePath)
Parses the source file identified by filePath and adds its parsed contents to the database.
const Location & location() const
bool hasTooManyTopics(const Doc &doc)
Checks if there are too many topic commands in doc.
Combined button and popup list for selecting options.