2011-12-20 09:35:10 +00:00
|
|
|
------------------------------------------------------------------------------
|
2019-09-07 22:36:08 +00:00
|
|
|
-- GNAT Studio --
|
2011-12-20 09:35:10 +00:00
|
|
|
-- --
|
2026-01-05 12:40:47 +00:00
|
|
|
-- Copyright (C) 2002-2026, AdaCore --
|
2011-12-20 09:35:10 +00:00
|
|
|
-- --
|
|
|
|
|
-- This is free software; you can redistribute it and/or modify it under --
|
|
|
|
|
-- terms of the GNU General Public License as published by the Free Soft- --
|
|
|
|
|
-- ware Foundation; either version 3, or (at your option) any later ver- --
|
|
|
|
|
-- sion. This software is distributed in the hope that it will be useful, --
|
|
|
|
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- --
|
|
|
|
|
-- TABILITY 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 distributed with this software; see file --
|
|
|
|
|
-- COPYING3. If not, go to http://www.gnu.org/licenses for a complete copy --
|
|
|
|
|
-- of the license. --
|
|
|
|
|
------------------------------------------------------------------------------
|
2003-01-16 10:57:40 +00:00
|
|
|
|
2005-02-25 16:12:38 +00:00
|
|
|
with GPS.Kernel;
|
2021-01-04 13:16:40 +02:00
|
|
|
with GPS.Kernel.Preferences; use GPS.Kernel.Preferences;
|
|
|
|
|
with Default_Preferences; use Default_Preferences;
|
2003-01-16 10:57:40 +00:00
|
|
|
|
|
|
|
|
package Cpp_Module is
|
|
|
|
|
|
|
|
|
|
procedure Register_Module
|
2005-02-25 16:12:38 +00:00
|
|
|
(Kernel : access GPS.Kernel.Kernel_Handle_Record'Class);
|
2020-10-16 19:16:30 +03:00
|
|
|
-- Register the C/C++ parsers in GNAT Studio.
|
2003-01-16 10:57:40 +00:00
|
|
|
-- If the external source navigator executables are not found on the path,
|
|
|
|
|
-- an error is displayed in the console and the C/C++ browsing will not be
|
|
|
|
|
-- available.
|
|
|
|
|
|
2021-01-04 13:16:40 +02:00
|
|
|
C_Automatic_Indentation : Indentation_Kind_Preferences.Preference;
|
|
|
|
|
C_Use_Tabs : Boolean_Preference;
|
|
|
|
|
-- Use tabulations when indenting.
|
|
|
|
|
|
2022-01-05 11:14:21 +00:00
|
|
|
C_Comment_Two_Slashes : Boolean_Preference;
|
|
|
|
|
-- Whether to indent C with // rather than with /* */
|
|
|
|
|
|
2021-01-04 13:16:40 +02:00
|
|
|
C_Indentation_Level : Integer_Preference;
|
|
|
|
|
-- Number of spaces for the default indentation.
|
|
|
|
|
|
|
|
|
|
C_Indent_Extra : Boolean_Preference;
|
|
|
|
|
C_Indent_Comments : Boolean_Preference;
|
|
|
|
|
|
2003-01-16 10:57:40 +00:00
|
|
|
end Cpp_Module;
|