Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <clangcodeparser.h>
Public Member Functions | |
FnCommandParser (QDocDatabase *qdb, const std::set< Config::HeaderFilePath > &all_headers, const QList< QByteArray > &defines, std::optional< std::reference_wrapper< const PCHFile > > pch) | |
std::variant< Node *, FnMatchError > | operator() (const Location &location, const QString &fnSignature, const QString &idTag, QStringList context) |
Use clang to parse the function signature from a function command. | |
Definition at line 40 of file clangcodeparser.h.
|
inline |
Definition at line 41 of file clangcodeparser.h.
std::variant< Node *, FnMatchError > FnCommandParser::operator() | ( | const Location & | location, |
const QString & | fnSignature, | ||
const QString & | idTag, | ||
QStringList | context ) |
Use clang to parse the function signature from a function command.
location is used for reporting errors. fnSignature is the string to parse. It is always a function decl. idTag is the optional bracketed argument passed to \fn, or an empty string. context is a string list representing the scope (namespaces) under which the function is declared.
Returns a variant that's either a Node instance tied to the function declaration, or a parsing failure for later processing.
Definition at line 1842 of file clangcodeparser.cpp.
References Parameters::count(), fnDummyFileName, kClangDontDisplayDiagnostics, Parameters::operator[](), FunctionNode::parameters(), printDiagnostics(), and ClangVisitor::visitFnArg().