mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-19 23:15:24 +02:00
Minor code cleanup.
This commit is contained in:
parent
00c29ec7eb
commit
d7f5c2bd7c
2 changed files with 1 additions and 3 deletions
|
@ -29,7 +29,7 @@ import org.eclipse.core.resources.IFile;
|
||||||
* @since 1.1
|
* @since 1.1
|
||||||
*/
|
*/
|
||||||
public class CppcheckOutputParser extends AbstractOutputParser {
|
public class CppcheckOutputParser extends AbstractOutputParser {
|
||||||
// the pattern for parsing the message is:
|
// sample line to parse:
|
||||||
//
|
//
|
||||||
// [/src/HelloWorld.cpp:19]: (style) The scope of the variable 'i' can be reduced
|
// [/src/HelloWorld.cpp:19]: (style) The scope of the variable 'i' can be reduced
|
||||||
// ----------1--------- -2 --3-- ------------------4-------------------------
|
// ----------1--------- -2 --3-- ------------------4-------------------------
|
||||||
|
@ -39,7 +39,6 @@ public class CppcheckOutputParser extends AbstractOutputParser {
|
||||||
// 2: line where problem was found
|
// 2: line where problem was found
|
||||||
// 3: problem severity
|
// 3: problem severity
|
||||||
// 4: problem description
|
// 4: problem description
|
||||||
|
|
||||||
private static Pattern pattern = Pattern.compile("\\[(.*):(\\d+)\\]:\\s*\\((.*)\\)\\s*(.*)"); //$NON-NLS-1$
|
private static Pattern pattern = Pattern.compile("\\[(.*):(\\d+)\\]:\\s*\\((.*)\\)\\s*(.*)"); //$NON-NLS-1$
|
||||||
|
|
||||||
private final InvocationParameters parameters;
|
private final InvocationParameters parameters;
|
||||||
|
|
|
@ -102,7 +102,6 @@ public class ExternalToolInvokerTest extends CodanTestCase {
|
||||||
// };
|
// };
|
||||||
public void testInvokesProcessCorrectly() throws Throwable {
|
public void testInvokesProcessCorrectly() throws Throwable {
|
||||||
String aboveComment = getAboveComment();
|
String aboveComment = getAboveComment();
|
||||||
System.out.println(aboveComment);
|
|
||||||
loadcode(aboveComment);
|
loadcode(aboveComment);
|
||||||
String expectedCommand = expectedCommand();
|
String expectedCommand = expectedCommand();
|
||||||
InvocationParameters parameters = new InvocationParameters(currentIFile, currentIFile,
|
InvocationParameters parameters = new InvocationParameters(currentIFile, currentIFile,
|
||||||
|
|
Loading…
Add table
Reference in a new issue