forked from qt-creator/qt-creator
CppEditor: Generate doxygen comments for functions with macros
...at least for object-like macros. This handles the common case where a macro before the function signature annotates the DLL import/export. Task-number: QTCREATORBUG-15819 Change-Id: I79f22508188019402fb7345222408aaf90106f20 Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
This commit is contained in:
@@ -425,10 +425,16 @@ public:
|
||||
Snapshot simplified(Document::Ptr doc) const;
|
||||
|
||||
Document::Ptr preprocessedDocument(const QByteArray &source,
|
||||
const Utils::FileName &fileName) const;
|
||||
const Utils::FileName &fileName,
|
||||
int withDefinedMacrosFromDocumentUntilLine = -1) const;
|
||||
Document::Ptr preprocessedDocument(const QByteArray &source,
|
||||
const QString &fileName) const
|
||||
{ return preprocessedDocument(source, Utils::FileName::fromString(fileName)); }
|
||||
const QString &fileName,
|
||||
int withDefinedMacrosFromDocumentUntilLine = -1) const
|
||||
{
|
||||
return preprocessedDocument(source,
|
||||
Utils::FileName::fromString(fileName),
|
||||
withDefinedMacrosFromDocumentUntilLine);
|
||||
}
|
||||
|
||||
Document::Ptr documentFromSource(const QByteArray &preprocessedDocument,
|
||||
const QString &fileName) const;
|
||||
|
||||
Reference in New Issue
Block a user