This file is indexed.

/usr/include/gpt/GPTDisplay.hpp is in libgportugol-dev 1.1-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
/***************************************************************************
 *   Copyright (C) 2003-2006 by Thiago Silva                               *
 *   thiago.silva@kdemal.net                                               *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/

#ifndef GPTDISPLAY_HPP
#define GPTDISPLAY_HPP

#include <map>
#include <list>
#include <string>
#include <sstream>
#include <stdlib.h>

using namespace std;

class UniqueErrorException {
public:
  UniqueErrorException(const string& msg, int line)
    : _msg(msg), _line(line) {  }

  ~UniqueErrorException() {}

   string message() {return _msg;}
   int line()       {return _line;}
private:
  string _msg;
  int _line;
};



class GPTDisplay {
public:
  const int MAX_ERRORS;

  class ErrorMsg {
    public:
    ErrorMsg() : line(0), hasTip(false), cd(0) {}
    int line;
    bool hasTip;
    int cd;
    string file;
    string msg;
    string tip;
  };

  ~GPTDisplay();

  static GPTDisplay* self();


  void showError(stringstream& s);
  void showError(const string&);
  void showMessage(stringstream& s);

  void stopOnError(bool);

  void addFileName(const string&);

  int add(const string& msg, int line);
  void addTip(const string& msg, int line, int cd);

  void setCurrentFile(const string& file);
  string getCurrentFile();
//   void addInternalError(const string&);
//   void addInternalError(const stringstream&);

  ErrorMsg getFirstError();

  void showErrors();
  bool hasError();

  int totalErrors();

  void showTips(bool);

  void clear();
private:
  GPTDisplay();

  static GPTDisplay* _self;

  string toOEM(const string& str);
  string toLatin1(const string&);
  
  void showError(ErrorMsg&);
  void showTip(ErrorMsg&);

  void processAndAdd(const string&, int);
  void processTipAndAdd(const string& msg, int line, int cd);

  int  _totalErrors;
  bool _stopOnError;
  bool _showTips;

  typedef map<string, int> file_map_t;
  file_map_t _file_map;
//  typedef map<int, list<ErrorMsg> > errors_map_t;
  typedef map<int, map<int, list<ErrorMsg> > > errors_map_t;
  errors_map_t _errors;

  string _currentFile;
};

#endif