This file is indexed.

/usr/include/codeblocks/compileroptions.h is in codeblocks-dev 10.05-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
/*
 * This file is part of the Code::Blocks IDE and licensed under the GNU Lesser General Public License, version 3
 * http://www.gnu.org/licenses/lgpl-3.0.html
 */

#ifndef COMPILEROPTIONS_H
#define COMPILEROPTIONS_H

#include <wx/dynarray.h>
#include <wx/intl.h>
#include <wx/string.h>
#include "settings.h"

struct CompOption
{
	// following comments are an example of an option
	wxString name;			// "Profile code"
	wxString option;		// "-pg"
	wxString additionalLibs;// "-lgmon"
	bool enabled;			// true/false
	wxString category;		// "Profiling"
	bool doChecks;			// true/false
	wxString checkAgainst;	// "-O -O1 -O2 -O3 -Os" (will check for these options and if any of them is found, will display the following message)
	wxString checkMessage;	// "You have optimizations enabled. This is Not A Good Thing(tm) when producing debugging symbols..."
};

WX_DEFINE_ARRAY(CompOption*, OptionsArray);

class DLLIMPORT CompilerOptions
{
	public:
		CompilerOptions();
		CompilerOptions(const CompilerOptions& other);
		CompilerOptions& operator=(const CompilerOptions& other);
		~CompilerOptions();
		void ClearOptions();
		void AddOption(CompOption* coption);
		void AddOption(const wxString& name,
						const wxString& option,
						const wxString& category = _("General"),
						const wxString& additionalLibs = wxEmptyString,
						bool doChecks = false,
						const wxString& checkAgainst = wxEmptyString,
						const wxString& checkMessage = wxEmptyString);
		unsigned int GetCount() const { return m_Options.GetCount(); }
		CompOption* GetOption(int index){ return m_Options[index]; }
		CompOption* GetOptionByName(const wxString& name);
		CompOption* GetOptionByOption(const wxString& option);
		CompOption* GetOptionByAdditionalLibs(const wxString& libs);
	protected:
	private:
		OptionsArray m_Options;
};

#endif // COMPILEROPTIONS_H