Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/outputview/tests/testlinebuilderfunctions.h
Show First 20 Lines • Show All 147 Lines • ▼ Show 20 Line(s) | |||||
148 | QString buildCmakeConfigureMultiLine(TestPathType pathType = UnixFilePathNoSpaces) | 148 | QString buildCmakeConfigureMultiLine(TestPathType pathType = UnixFilePathNoSpaces) | ||
149 | { | 149 | { | ||
150 | QString outputline; | 150 | QString outputline; | ||
151 | outputline.append(projectPath(pathType)); | 151 | outputline.append(projectPath(pathType)); | ||
152 | outputline.append("CMakeLists.txt:10:"); | 152 | outputline.append("CMakeLists.txt:10:"); | ||
153 | return outputline; | 153 | return outputline; | ||
154 | } | 154 | } | ||
155 | 155 | | |||
156 | QString buildAutoMocLine(TestPathType pathType = UnixFilePathNoSpaces, bool useAutoMoc = true) | ||||
157 | { | ||||
158 | QString outputline; | ||||
159 | useAutoMoc ? outputline.append("AUTOMOC: error: ") : outputline.append("AUTOGEN: error: "); | ||||
160 | outputline.append(projectPath(pathType)); | ||||
161 | outputline.append("bar.cpp The file includes the moc file \"moc_bar1.cpp\""); | ||||
162 | return outputline; | ||||
163 | } | ||||
164 | | ||||
165 | QString buildOldAutoMocLine(TestPathType pathType = UnixFilePathNoSpaces) | ||||
166 | { | ||||
167 | QString outputline; | ||||
168 | outputline.append("automoc4: The file \""); | ||||
169 | outputline.append(projectPath(pathType)); | ||||
170 | outputline.append("bar.cpp\" includes the moc file \"bar1.moc\""); | ||||
171 | return outputline; | ||||
172 | } | ||||
156 | 173 | | |||
157 | QString buildLinkerErrorLine(TestPathType pathType = UnixFilePathNoSpaces) | 174 | QString buildLinkerErrorLine(TestPathType pathType = UnixFilePathNoSpaces) | ||
158 | { | 175 | { | ||
159 | return projectPath(pathType) + QLatin1String("Buffer.cpp:66: undefined reference to `Buffer::does_not_exist()'"); | 176 | return projectPath(pathType) + QLatin1String("Buffer.cpp:66: undefined reference to `Buffer::does_not_exist()'"); | ||
160 | } | 177 | } | ||
161 | 178 | | |||
162 | QString buildPythonErrorLine(TestPathType pathType = UnixFilePathNoSpaces) | 179 | QString buildPythonErrorLine(TestPathType pathType = UnixFilePathNoSpaces) | ||
163 | { | 180 | { | ||
Show All 17 Lines |