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:
@@ -26,6 +26,8 @@
|
||||
#ifndef CPPDOXYGEN_TEST_H
|
||||
#define CPPDOXYGEN_TEST_H
|
||||
|
||||
#include "cppeditortestcase.h"
|
||||
|
||||
#include <cpptools/commentssettings.h>
|
||||
|
||||
#include <QObject>
|
||||
@@ -48,13 +50,17 @@ private slots:
|
||||
void testBasic_data();
|
||||
void testBasic();
|
||||
|
||||
void testWithMacroFromHeaderBeforeFunction();
|
||||
|
||||
void testNoLeadingAsterisks_data();
|
||||
void testNoLeadingAsterisks();
|
||||
|
||||
private:
|
||||
void verifyCleanState() const;
|
||||
void runTest(const QByteArray &original, const QByteArray &expected,
|
||||
CppTools::CommentsSettings *settings = 0);
|
||||
void runTest(const QByteArray &original,
|
||||
const QByteArray &expected,
|
||||
CppTools::CommentsSettings *settings = 0,
|
||||
const TestDocuments &includedHeaderDocuments = TestDocuments());
|
||||
|
||||
QScopedPointer<CppTools::CommentsSettings> oldSettings;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user