From 5fe3ead73ef730fa1659bd17af206ec94a428159 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Fri, 27 Aug 2021 13:15:46 +0200 Subject: CppTools/CppEditor: Rename the TestDocument classes It was not helpful that we had four different classes with the same name. Note that they look suspiciously similar and could possibly be merged into a single class at some point. Change-Id: I7d4c10a09408226037bc0d276940bca39dc5f576 Reviewed-by: Christian Stenger --- src/plugins/cppeditor/cppdoxygen_test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins/cppeditor/cppdoxygen_test.cpp') diff --git a/src/plugins/cppeditor/cppdoxygen_test.cpp b/src/plugins/cppeditor/cppdoxygen_test.cpp index 9511b6df6e..2f53b1a81d 100644 --- a/src/plugins/cppeditor/cppdoxygen_test.cpp +++ b/src/plugins/cppeditor/cppdoxygen_test.cpp @@ -375,7 +375,7 @@ void DoxygenTest::testWithMacroFromHeaderBeforeFunction() " */\n" "API void f();\n"; - const TestDocument headerDocumentDefiningMacro("header.h", "#define API\n"); + const GenericCppTestDocument headerDocumentDefiningMacro("header.h", "#define API\n"); runTest(given, expected, /*settings=*/ 0, {headerDocumentDefiningMacro}); } @@ -421,12 +421,12 @@ void DoxygenTest::runTest(const QByteArray &original, // Write files to disk CppTools::Tests::TemporaryDir temporaryDir; QVERIFY(temporaryDir.isValid()); - TestDocument testDocument("file.cpp", original, '|'); + GenericCppTestDocument testDocument("file.cpp", original, '|'); QVERIFY(testDocument.hasCursorMarker()); testDocument.m_source.remove(testDocument.m_cursorPosition, 1); testDocument.setBaseDirectory(temporaryDir.path()); QVERIFY(testDocument.writeToDisk()); - foreach (TestDocument testDocument, includedHeaderDocuments) { + foreach (GenericCppTestDocument testDocument, includedHeaderDocuments) { testDocument.setBaseDirectory(temporaryDir.path()); QVERIFY(testDocument.writeToDisk()); } -- cgit v1.2.1