1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-06 17:26:01 +02:00
Commit graph

217 commits

Author SHA1 Message Date
Jonah Graham
b8bd15844b Bug 571722: Add ALL_FLAGS for scanner discovery
This change adds the ALL_FLAGS that does not limit tool options to
those declared as IOption::isForScannerDiscovery when launching the
compiler to discover compiler built-ins.

This is needed as many other flags, either entered manually in "Other
flags" or some of the existing flags with checkboxes such as "-ansi",
"-fPIC", and "-fstack-protector-all" which all affect scanner discovery
as they can all change what macros are built-in to the compiler.

The current solution has as a drawback that some settings, like -I and -D
then appear twice. For example in the "Includes" node in the "Project
Explorer"

My only reservation about this change is if there is an option
that can be specified successfully at build time, but when used
at scanner discovery time causes the compiler to fail, or return
incorrect results. Therefore I have added a new field,
excludeFromScannerDiscovery to tool options (buildDefinitions
extension point) that allows tool integrators to always exclude
a command line option from ALL_FLAGS. I have also added
a new "Other flags (excluded from discovery)" to the
"Miscellaneous" tab to allow compiler options to be entered
by the user.
2022-11-21 10:46:49 -05:00
Torbjörn Svensson
e632011f2c Bug 568728: Drop execute permission on files
Add enforecment script that verifies that only specified file types are
allowed to be mared as executable.

Change-Id: I4b40e3a46b03bfc78a9dcd52e8bf29cb079b7f3b
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-18 17:38:22 +01:00
Jeff Johnston
c96d126b86 Bug 513589 - Add support to build CDT projects in a Docker Container
- add IOptionalBuildObjectPropertiesContainer interface to use for
  objects that supply optional build properties
- add new IOptionalBuildProperties interface that defines
  optional build properties donated by external plug-ins
- add new
- change IConfiguration to an IOptionalBuildObjectPropertiesContainer
- change IManagedProject to be an
  IOptionalBuildObjectPropertiesContainer
- fix ProcessClosure to ensure that readers are not null before
  accessing them
- fix Container launch delegate to look at project optional
  build properties for active configuration to fetch connection
  and image info and use said info to find a matching
  launch or create a new one
- have Container launch delegate use the image name as part of
  the launch config name
- have Container launch short-cut also use the project's
  optional build properties for the active config to get
  connection and image information before any defaulting
- change AutotoolsNewMarkerGenerator to store the command
  launcher as an ICommandLauncher
- add new CommandLauncherFactory extension to cdt.core that
  allows plug-ins to specify a CommandLauncherFactory that
  will return an ICommandLauncher based on the project
- add macros for new extension to CCorePlugin
- add new CommandLauncherManager class that loads
  CommandLauncherFactory extensions and is used to give
  an ICommandLauncher wrapper that will go through the list
  of CommandLauncherFactory extensions until one returns
  non-null ICommandLauncher
- add code to RemoteCommandLauncher so it will use the
  CommandLauncherManager to get the local launcher
- also change RemoteCommandLauncher to check at execution
  time whether the command is local and in that case use
  the local command launcher
- add new ICommandLauncherFactory interface
- add new ContainerCommandLauncher to launch
- add new ContainerCommandLauncherFactory class for returning
  a ContainerCommandLauncher instance to launch commands
  in a Docker Container
- change MakeBuilder to use CommandLauncherManager to get
  its ICommandLauncher
- change CommandBuilder to use CommandLauncherManager too
- ditto for Builder and AbstractBuiltinSpecsDetector and
  ExternalToolInvoker
- change Configuration to load/store optional build properties
  as well as return the properties to get/set
- ditto for MultiConfiguration
- change ManagedProject to implement IOptionalBuildOptionProperties
  interface
- ditto for ProjectType
- create new OptionalBuildProperties class to store optional
  build properties for a configuration
- bump cdt.docker.launcher to 1.1.0
- use CommandLauncherFactory extension to define
  ContainerCommandLauncherFactory
- add optional ContainerPropertyTab which allows the end-user to
  optionally choose to build a C/C++ project in a Container
  and specify the connection/image to use
- in LanguageSettingsSerializableSettings class, call the
  CommandLauncherManager getLanguageSettingEntries method
  to get the massaged language setting entries based on the
  current list
- in LanguageSettingsProviderSerializer, try and get the
  pooled entries using the cfg description so that it will
  have the project and can use the CommandLauncherManager
  to get entries from image
- in ContainerCommandLauncherFactory move cached headers under
  a HEADERS directory in the plug-in area
  - create a sub-directory for the connection and a sub-directory
    for the image based on cleansed names
  - store the real names of the connection and image to use
    later in the DockerHeaderPreferencePage
- modify LanguageSettingsEntriesTab to force the horizontal
  scroll bar to appear (this is a bug in SWT SashForm support
  and the fix here isn't quite correct, but is better)
- add new DockerHeaderPreferencePage that allows user to
  remove cached headers from images
- change C/C++ Docker preferences to be titled: Docker Container
- fix LanguageSettingsWorkspaceProvider.getSettingEntries method
  to use the CommandLauncherManager so entries will be transformed
  to use cached headers
- add BaseDatabindingModel class
- add DataVolumeModel class to model a volume mount
- add ContainerPropertyVolumes model to model volume specification
  and selected volumes
- add properties to ContainerCommandLauncher to represent
  volumes and selected volumes for a configuration
- add ContainerDataVolumeDialog for specifying a volume
  mount by the end-user
- add a null detector for cfgDescription in
  LanguageSettingsSerializableProvider
- fix AutotoolsNewMakeGenerator.getWinOSType to not specify "." for
  working dir
- fix GCCBuiltinSpecsDetectorCygwin to not map paths to Cygwin if
  the current configuration is enabled for container build
- add logic to ContainerCommandLauncher to look for Windows
  file formats and change them to unix format and map
  any "." working dir to be /tmp
- fix ContainerLauncherConfigurationDelegate similarly
- fix AbstractBuiltinSpecsDetector to pass in the current
  configuration description when getting the CommandLauncher
  since the current configuration may not be the active
  configuration
- change ContainerPropertyTab to add Elf and GNU Elf binary parsers
  when build in Container is chosen so that output executables
  are treated as Binaries by the CDT project
- add documentationl for the ContainerPropertyTab in Build Settings and
  the Data Volume dialog pop-up it brings up
- change CommandBuilder to accept a project as an argument
  to its constructor and to pass this as an argument to
  the CommandLauncherManager
- have StepBuilder pass project when creating a CommandBuilder

Change-Id: Ia78488b93056e6ec7ca83a6c87b3a9d2b9424943
2017-10-22 05:38:51 -04:00
Jonah Graham
e9c3f978a8 Add missing reference to GDB Debugging Preferences (for DSF preferences)
Change-Id: I46636de4cf8893991ba6587425c45eea6c2d93e5
2016-12-05 21:47:25 +00:00
Jonah Graham
e7ccfabb32 Bug 484900: Remove CDI User Documentation
Change-Id: I16ebb6319d3f10edba55b1b96be053a2dc9bc8b4
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-12-05 21:46:22 +00:00
Jonah Graham
93155eceba Bug 472765: User documentation for Path Mapping
Change-Id: Ida009cc85c0b35845bd2c6db19a7e23a0a37f700
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-04-13 10:41:46 -05:00
Andrew Gvozdev
61bc81d157 bug 422558: Managed build projects context help is broken 2014-01-07 10:21:18 -05:00
Thomas Corbat
c92d135f6d Bug 412380 Documentation for "Skip trivial initializer" flag.
Replaced the screenshot and added a short description of the new
options.

Change-Id: Iab2be3bb769079fac8cad70d16d37797d4a57100
Reviewed-on: https://git.eclipse.org/r/16838
Reviewed-by: Thomas Corbat <tcorbat@hsr.ch>
IP-Clean: Thomas Corbat <tcorbat@hsr.ch>
Tested-by: Thomas Corbat <tcorbat@hsr.ch>
2013-09-27 09:51:23 -04:00
Andrew Gvozdev
e84409b1f0 bug 404913: Dialect category and options for language standards for GCC toolchain 2013-07-24 14:50:45 -04:00
Andrew Gvozdev
7053a577c3 bug 409392: Description for overlay decorations in user doc 2013-06-11 14:51:26 -04:00
Andrew Gvozdev
ee0b58622c bug 409392: Update context help and user documentation for new Scanner Discovery "Preprocessor Includes, Macros..." property/preference pages 2013-06-08 08:15:17 -04:00
Andrew Gvozdev
4732c34a58 bug 409392: Update context help and user documentation for new Scanner Discovery "Preprocessor Includes, Macros..." property/preference pages 2013-06-05 14:37:07 -04:00
Andrew Gvozdev
9a53b3573e bug 409392: Removed docs for non-existing scanner discovery property pages on file and folder level 2013-05-29 11:14:42 -04:00
Andrew Gvozdev
6359fdac14 Minor cosmetic changes to user doc. 2013-05-29 11:13:10 -04:00
Jesse Weinstein
2a9b8c4bbb Bug 404695: Removing screenshots from menu docs
Also makes a tiny change to the CSS applied to
the menu items, setting vertical-align:top.

Change-Id: If54e5a15d96654a0697d4f3f56f32745d9bae031
Reviewed-on: https://git.eclipse.org/r/11595
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-04-03 13:05:02 -04:00
Sergey Prigogin
40b08ac68c Removed spaces from keyboard shortcuts. 2013-04-01 19:39:11 -07:00
Jesse Weinstein
73fb3076a6 Bug 402071: Updating Search menu.
Various small fixes, including indentation, adding spaces between parts
of the keyboard shortcuts, and removing the screenshot, per mailing list
discussion.

Change-Id: I4162de2cb7135323c86227ac24a2a0e44b459db1
Reviewed-on: https://git.eclipse.org/r/11594
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-04-01 22:10:46 -04:00
Jesse Weinstein
47645df5b3 Bug 402071: Update the Project menu
Remove the screenshot, per discussion on the mailing list.

Change-Id: Iabb67ed3bc42a6b1b1c858c1571cf44ed42b90d4
Reviewed-on: https://git.eclipse.org/r/11593
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-04-01 22:10:09 -04:00
Jesse Weinstein
5f20538e4c Bug 403263: Update Editor > General preference docs
Change-Id: I0612f2ffe8ef6a27184b0c37d519e632064774d5
Reviewed-on: https://git.eclipse.org/r/11289
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-03-18 18:53:18 -04:00
Jesse Weinstein
56458da802 Bug 388068: Fix more broken links
Change-Id: I19d7c7f9880a9e95e94ca6364a6246b70157c0e2
Reviewed-on: https://git.eclipse.org/r/11143
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-03-15 01:59:29 -04:00
Jesse Weinstein
aaa1d2e408 Bug 349077: Fix broken links
Change-Id: I3d9e0c7e2918548515ae9988fbeaa2c14220c322
Reviewed-on: https://git.eclipse.org/r/11140
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-03-13 19:06:04 -04:00
Jesse Weinstein
01b43ae445 Bug 403263: Add pref links to menu docs
Change-Id: I30c9c775570d091927f56f5212deaf237c66b1a9
Reviewed-on: https://git.eclipse.org/r/11131
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-03-13 18:10:20 -04:00
Jesse Weinstein
821bae5912 Bug 402071: Update the ToC
Also use the INSERT_CHILD_LINKS feature, to avoid duplication.

Change-Id: I992e81df08fb9eb42b1725e90761ff1157f85d80
Reviewed-on: https://git.eclipse.org/r/11132
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-03-13 16:32:07 -04:00
Jesse Weinstein
bbea2db0b4 Bug 402071: Add link to Workbench Help menu docs
Change-Id: I68d8e374d39321deed6ef426b211a3cc81063dae
Reviewed-on: https://git.eclipse.org/r/11097
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-03-13 13:43:57 -04:00
Jesse Weinstein
032f17d5f5 Bug 402071: Update Window menu
Change-Id: I9bc4ed774a9f9c261c2c5d87e0ad14f5b4ece00c
Reviewed-on: https://git.eclipse.org/r/11095
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-03-12 19:35:59 -04:00
Jesse Weinstein
d2f798e5b8 Bug 402071: Update Run menu docs
Four entries still need descriptions.

Change-Id: I7cc1af4063860c80cb1dea58803b71b139a02736
Reviewed-on: https://git.eclipse.org/r/10873
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-03-07 22:47:21 -05:00
Jesse Weinstein
953a92a2fe Bug 402071: Update Navigate menu docs
Two descriptions are still missing; need to research what exactly they
do.

Change-Id: If1e650375194999a3c5c4e74496ec8559f391837
Reviewed-on: https://git.eclipse.org/r/10789
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-03-06 12:57:39 -05:00
Jesse Weinstein
d89d6a63f6 Bug 402071: Updating File menu docs
Change-Id: I6c427a126efdedbdff69c86a955dc88d1775aaf4
Reviewed-on: https://git.eclipse.org/r/10762
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-03-01 12:52:53 -05:00
Jesse Weinstein
9aa1b6ec2c Bug 402071: Updating verb tense in Edit menu
Change-Id: I9eb0e3eb5a88db8fd0b5c56d63eb04e9966f176c
Reviewed-on: https://git.eclipse.org/r/10763
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-02-28 21:24:44 -05:00
Jesse Weinstein
8da0b43d30 Bug 400955: add Source menu docs
Some of the descriptions are not very good, and will be improved in a
future commit.

Change-Id: I1150a76c504fe0cf71911acb3c0a1c6e72ee3686
Reviewed-on: https://git.eclipse.org/r/10557
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-02-22 19:07:33 -05:00
Jesse Weinstein
3fc0510ecd Bug 400955: update Edit menu docs
Change-Id: I743c5ca8a412eb059bba478aaecc223dd04b2080
Reviewed-on: https://git.eclipse.org/r/10541
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-02-22 19:05:08 -05:00
Jesse Weinstein
b502c8ab5d Bug 400955: move some styling into css classes
The edit menu docs will be updated in a later patch.

Change-Id: I5a8975d1159e39e580e87f502160d3f46d71b3f0
Reviewed-on: https://git.eclipse.org/r/10604
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-02-22 19:02:59 -05:00
Jesse Weinstein
ee70160c98 add missing items to Refactor menu docs
Change-Id: I7baf8e88da0cfeeff27e984f406e0cf16439ba8a
Reviewed-on: https://git.eclipse.org/r/10398
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-02-15 15:11:44 -05:00
Marc Khouzam
f6ce109425 Bug 360735: Add preference for behavior of "Show Breakpoints Supported
by Selected Target"

Change-Id: I648da9180d504d3177e2b9b101a2cf87a9209f84
Reviewed-on: https://git.eclipse.org/r/7922
Reviewed-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
IP-Clean: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
Tested-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
IP-Clean: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
2012-10-26 05:38:42 -04:00
Vivian Kong
52cf5f2b85 Bug 389951 - [Accessibility] CDT documentation has accessibility issues 2012-09-19 21:17:46 -04:00
Marc Khouzam
718ba6dfa7 Bug 389527: Update DSF-GDB preference page help
Change-Id: Ie0fb6937ff73f15525db2bdd178464b6bdc9a2d7
Reviewed-on: https://git.eclipse.org/r/7766
Reviewed-by: John Cortell <john.cortell@freescale.com>
IP-Clean: John Cortell <john.cortell@freescale.com>
Tested-by: John Cortell <john.cortell@freescale.com>
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
IP-Clean: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
2012-09-17 14:34:28 -04:00
Marc Khouzam
49c5be791f Bug 370462: Improving the debug preferences - add support for different charsets and unify DSF and CDI debug preferences. Update to number format changes to avoid API breakage. 2012-03-06 09:23:34 -05:00
Mathias Kunter
c61ae8a137 Bug 370462: Improving the debug preferences - add support for different charsets and unify DSF and CDI debug preferences 2012-03-06 09:23:28 -05:00
Marc-Andre Laperle
3bd21a03c4 [Outline] Add Collapse All button 2012-01-03 00:01:59 -05:00
Marc-Andre Laperle
3108f9efdf Bug 342498 - Pin Call Hierarchy View 2011-11-12 16:40:40 -05:00
Marc-Andre Laperle
bf54f2dad4 Bug 348258 - Syntax errors in CDT_U_C_EDITOR_FOLDING.HTM 2011-07-26 12:36:16 -04:00
Marko Tomljenovic
0dc841b995 Bug 351076 - Make MAX_DELAY of editor content assist computation configurable 2011-07-22 11:13:19 +02:00
Vivian Kong
6e469df334 Bug 341483 - [Accessibility] CDT documentation has accessibility issues 2011-03-31 13:59:18 +00:00
Andrew Gvozdev
73a58b60cc bug 333113: Rebuild last target: option to use build location of active build configuration
Patch from Axel Mueller
2011-02-16 04:10:58 +00:00
Sergey Prigogin
9aee6c4850 Bug 225805 - Sourcelookup handling does not scale to large projects 2010-12-10 22:39:43 +00:00
Vivian Kong
e3480a4a71 Bug 317992 Duplicate Outline View entry for F1 help 2010-07-14 16:21:30 +00:00
Vivian Kong
98d451cfb8 Bug 319627 [Accessibility] CDT documentation has accessibility issues 2010-07-12 19:31:25 +00:00
Vivian Kong
79c919399f Bug 319594 Broken Link, displaying C/C++... and hiding files by type... 2010-07-12 18:53:44 +00:00
Vivian Kong
3236db21fc minor doc fix 2010-06-28 20:03:26 +00:00
Andrew Gvozdev
3f9995f1db bug 289168: [RegexErrorParser] Update Help 2010-06-03 18:19:28 +00:00