~ajovanov93/ewns-viewer/trunk

« back to all changes in this revision

Viewing changes to parsers/cpp_parser.vala

  • Committer: ajovanov93 at yahoo
  • Date: 2012-07-23 18:33:58 UTC
  • Revision ID: ajovanov93@yahoo.com-20120723183358-h0yp2clpdk5536ru
changed some things about parsers and updated the docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
    public bool validate_line(string line,int line_number) { return true; }
24
24
 
25
 
    public ErrorWarningNoteData[] parse_lines(string[] lines)
 
25
    public ErrorWarningNoteData parse_lines(string[] lines)
26
26
    {
27
27
         var ewn = new ErrorWarningNoteData();
28
28
         var split = lines[0].split(":");
29
29
 
 
30
         // for symbol missing cases
 
31
 
30
32
         if(lines[0].contains("/usr/bin/ld") || split[0].contains("(."))
31
33
         {
32
34
            ewn.type = "error";
44
46
 
45
47
            ewn.additional_data = "It seems that there is a symbol missing. The most probable reason is a lack of a specific library or a missing main method.";
46
48
 
47
 
            return { ewn };
 
49
            return ewn;
48
50
 
49
51
        }
50
52
 
64
66
           ewn.message = msg.replace("\n","");
65
67
        }
66
68
 
67
 
        return { ewn };
 
69
        return ewn;
68
70
    }
69
71
 
70
72
    public void load()
71
73
    {
 
74
        message("Loaded c++ parser!");
72
75
    }
73
76
}
74
77