Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/outputview/tests/testlinebuilderfunctions.h
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | 44 | { | |||
---|---|---|---|---|---|
45 | case WindowsFilePathNoSpaces: | 45 | case WindowsFilePathNoSpaces: | ||
46 | return QStringLiteral("C:/some/path/to/a/project"); | 46 | return QStringLiteral("C:/some/path/to/a/project"); | ||
47 | case WindowsFilePathWithSpaces: | 47 | case WindowsFilePathWithSpaces: | ||
48 | return QStringLiteral("C:/some/path with spaces/to/a/project"); | 48 | return QStringLiteral("C:/some/path with spaces/to/a/project"); | ||
49 | case UnixFilePathNoSpaces: | 49 | case UnixFilePathNoSpaces: | ||
50 | return QStringLiteral("/some/path/to/a/project"); | 50 | return QStringLiteral("/some/path/to/a/project"); | ||
51 | case UnixFilePathWithSpaces: | 51 | case UnixFilePathWithSpaces: | ||
52 | return QStringLiteral("/some/path with spaces/to/a/project"); | 52 | return QStringLiteral("/some/path with spaces/to/a/project"); | ||
53 | default: | | |||
54 | Q_ASSERT(0); | | |||
55 | return QStringLiteral("/we/should/never/end/up/here"); | | |||
56 | } | 53 | } | ||
54 | Q_UNREACHABLE(); | ||||
57 | } | 55 | } | ||
58 | 56 | | |||
59 | QString buildCppCheckErrorLine(TestPathType pathType = UnixFilePathNoSpaces) | 57 | QString buildCppCheckErrorLine(TestPathType pathType = UnixFilePathNoSpaces) | ||
60 | { | 58 | { | ||
61 | /// Test CPP check output | 59 | /// Test CPP check output | ||
62 | QString outputline(QStringLiteral("[")); | 60 | QString outputline(QStringLiteral("[")); | ||
63 | outputline.append(projectPath(pathType)); | 61 | outputline.append(projectPath(pathType)); | ||
64 | outputline.append("main.cpp:26]: (error) Memory leak: str"); | 62 | outputline.append("main.cpp:26]: (error) Memory leak: str"); | ||
▲ Show 20 Lines • Show All 118 Lines • Show Last 20 Lines |