Utils: Make Link a class

Change-Id: Ia2f1c9589f65064eca2416b093b3fecf568058d2
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2021-05-31 08:18:19 +02:00
parent 626a79488f
commit 73c2a98b39
5 changed files with 6 additions and 5 deletions

View File

@@ -22,7 +22,7 @@
#include "CPlusPlusForwardDeclarations.h" #include "CPlusPlusForwardDeclarations.h"
namespace Utils { struct Link; } namespace Utils { class Link; }
namespace CPlusPlus { namespace CPlusPlus {

View File

@@ -35,8 +35,9 @@
namespace Utils { namespace Utils {
struct QTCREATOR_UTILS_EXPORT Link class QTCREATOR_UTILS_EXPORT Link
{ {
public:
Link(const Utils::FilePath &filePath = Utils::FilePath(), int line = 0, int column = 0) Link(const Utils::FilePath &filePath = Utils::FilePath(), int line = 0, int column = 0)
: targetFilePath(filePath) : targetFilePath(filePath)
, targetLine(line) , targetLine(line)

View File

@@ -44,7 +44,7 @@ QT_END_NAMESPACE
namespace Utils { namespace Utils {
class FileInProjectFinder; class FileInProjectFinder;
class FormattedText; class FormattedText;
struct Link; class Link;
class QTCREATOR_UTILS_EXPORT OutputLineParser : public QObject class QTCREATOR_UTILS_EXPORT OutputLineParser : public QObject
{ {

View File

@@ -38,7 +38,7 @@ namespace CPlusPlus { class Document; }
namespace Utils { namespace Utils {
class LineColumn; class LineColumn;
struct Link; class Link;
} }
namespace CppTools { namespace CppTools {

View File

@@ -110,7 +110,7 @@ std::ostream &operator<<(std::ostream &out, const HeaderPath &headerPath);
namespace Utils { namespace Utils {
class LineColumn; class LineColumn;
class SmallStringView; class SmallStringView;
struct Link; class Link;
std::ostream &operator<<(std::ostream &out, const LineColumn &lineColumn); std::ostream &operator<<(std::ostream &out, const LineColumn &lineColumn);
std::ostream &operator<<(std::ostream &out, const Utils::Language &language); std::ostream &operator<<(std::ostream &out, const Utils::Language &language);