aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor/cppdoxygen_test.h
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2016-03-04 12:43:06 +0100
committerNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2016-03-04 14:22:27 +0000
commit2b2ba298f3cfc17b74ddd476613377f0b325955b (patch)
tree3ccd65e272d234c0c2b71954884b36776c101d7e /src/plugins/cppeditor/cppdoxygen_test.h
parentf99f5dcdc6f1ae26145242712985ca42d724e34d (diff)
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>
Diffstat (limited to 'src/plugins/cppeditor/cppdoxygen_test.h')
-rw-r--r--src/plugins/cppeditor/cppdoxygen_test.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/plugins/cppeditor/cppdoxygen_test.h b/src/plugins/cppeditor/cppdoxygen_test.h
index 65e7672c2a..68f6b2509a 100644
--- a/src/plugins/cppeditor/cppdoxygen_test.h
+++ b/src/plugins/cppeditor/cppdoxygen_test.h
@@ -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;
};