1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-19 06:55:23 +02:00
cdt/debug/org.eclipse.cdt.debug.application.doc/reference
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
..
cdt_o_ceditor_pref.htm
cdt_o_dbg_view.htm
cdt_o_menu.htm
cdt_o_mproj_pref.htm
cdt_o_mproj_pref_macro.htm
cdt_o_new_mproj.htm
cdt_o_new_sproj.htm
cdt_o_proj_prop_pages.htm
cdt_o_prop_file.htm
cdt_o_prop_folder.htm
cdt_o_prop_proj.htm
cdt_o_ref.htm
cdt_o_run_dbg_pages.htm
cdt_o_views.htm
cdt_u_appearance_pref.htm
cdt_u_c_code_style_pref.htm
cdt_u_c_code_templates_pref.htm
cdt_u_c_editor_color.htm
cdt_u_c_editor_con_assist.htm
cdt_u_c_editor_con_assist_adv.htm
cdt_u_c_editor_folding.htm
cdt_u_c_editor_gen.htm
cdt_u_c_editor_hov.htm
cdt_u_c_editor_mark_occurrences.htm
cdt_u_c_editor_save_actions.htm
cdt_u_c_editor_scalability.htm
cdt_u_c_editor_typing.htm
cdt_u_c_file_types.htm
cdt_u_c_pref.htm
cdt_u_call_hierarchy_view.htm
cdt_u_code_temp.htm
cdt_u_console_pref.htm
cdt_u_console_view.htm
cdt_u_cproj_view.htm
cdt_u_create_make_target.htm
cdt_u_dbg_breadcrumb.htm
cdt_u_dbg_brkpt_actions.htm
cdt_u_dbg_pref.htm
cdt_u_dbg_src.htm
cdt_u_dbg_src_path_mapping.htm
cdt_u_dbg_view.htm
cdt_u_debug.htm
cdt_u_discovery_preferences.htm
cdt_u_dissassembly_view.htm
cdt_u_dsfgdb.htm
cdt_u_editor_view.htm
cdt_u_environment_pref.htm
cdt_u_fileprop_inc.htm
cdt_u_fileprop_lang_mapp.htm
cdt_u_fileprop_lng.htm
cdt_u_fileprop_steps.htm
cdt_u_fileprop_sym.htm
cdt_u_fileprop_toolsettings.htm
cdt_u_find_replace.htm
cdt_u_fprop_resource.htm
cdt_u_fprop_toolsettings.htm
cdt_u_icons.htm
cdt_u_include_browser_view.htm
cdt_u_indexer_preference.html
cdt_u_language_mapping_pref.htm
cdt_u_m_edit.htm
cdt_u_m_file.htm
cdt_u_m_navigate.htm
cdt_u_m_project.htm
cdt_u_m_refactor.htm
cdt_u_m_run.htm
cdt_u_m_search.htm
cdt_u_m_source.htm
cdt_u_m_window.htm
cdt_u_make_pref.htm
cdt_u_make_settings_pref.htm
cdt_u_make_targets_view.htm
cdt_u_makefile_settings_pref.htm
cdt_u_mem_view_pref.htm
cdt_u_memoryview.htm
cdt_u_mfile_build.htm
cdt_u_mfile_info.htm
cdt_u_mfile_rcbs.htm
cdt_u_mfile_tool_settings.htm
cdt_u_modules_view.htm
cdt_u_navigator_view.htm
cdt_u_new_proj_wiz.htm
cdt_u_new_proj_wiz_config.htm
cdt_u_new_proj_wiz_name.htm
cdt_u_new_proj_wiz_toolchain.htm
cdt_u_new_proj_wiz_type.htm
cdt_u_newproj_behavior.htm
cdt_u_newproj_buildset.htm
cdt_u_newproj_def_symb.htm
cdt_u_newproj_discovery_options.htm
cdt_u_newproj_parser_binary.htm
cdt_u_newproj_parser_error.htm
cdt_u_newproj_platf.htm
cdt_u_open_element.htm
cdt_u_outline_view.htm
cdt_u_pref_build.htm
cdt_u_pref_build_error_parsers.htm
cdt_u_pref_build_scanner_discovery.htm Bug 571722: Add ALL_FLAGS for scanner discovery 2022-11-21 10:46:49 -05:00
cdt_u_pref_build_vars.htm
cdt_u_pref_multi_cfg.htm
cdt_u_pref_prop_pages.htm
cdt_u_pref_task_tags.htm
cdt_u_pref_wizard_defaults.htm
cdt_u_pref_wizard_toolchains.htm
cdt_u_problems_view.htm
cdt_u_project_explorer_view.htm
cdt_u_prop_all.htm
cdt_u_prop_build.htm
cdt_u_prop_build_discovery.htm
cdt_u_prop_build_environment.htm
cdt_u_prop_build_settings_artifact.htm
cdt_u_prop_build_settings_binparser.htm
cdt_u_prop_build_settings_errparser.htm
cdt_u_prop_build_settings_steps.htm
cdt_u_prop_build_settings_tool.htm
cdt_u_prop_build_toolchain.htm
cdt_u_prop_build_variables.htm
cdt_u_prop_builders.htm
cdt_u_prop_cfg_dialog.htm
cdt_u_prop_general.htm
cdt_u_prop_general_doc.htm
cdt_u_prop_general_exp.htm
cdt_u_prop_general_idx.htm
cdt_u_prop_general_lng.htm
cdt_u_prop_general_pns_hier.htm
cdt_u_prop_general_pns_inc.htm
cdt_u_prop_general_pns_lib.htm
cdt_u_prop_general_pns_libpath.htm
cdt_u_prop_general_pns_out.htm
cdt_u_prop_general_pns_ref.htm
cdt_u_prop_general_pns_src.htm
cdt_u_prop_general_pns_sym.htm
cdt_u_prop_general_scanner_discovery.htm
cdt_u_prop_general_sd_entries.htm
cdt_u_prop_general_sd_providers.htm
cdt_u_prop_general_typ.htm
cdt_u_prop_manage_dialog.htm
cdt_u_prop_manage_newdialog.htm
cdt_u_prop_manage_rendialog.htm
cdt_u_prop_ref.htm
cdt_u_prop_refactoring_history.htm
cdt_u_prop_resource.htm
cdt_u_prop_rundebug.htm
cdt_u_properties.htm
cdt_u_properties_view.htm
cdt_u_registersview.htm
cdt_u_run_dbg_arg.htm
cdt_u_run_dbg_comm.htm
cdt_u_run_dbg_dbg.htm
cdt_u_run_dbg_env.htm
cdt_u_run_dbg_launch_group.htm
cdt_u_run_dbg_main.htm
cdt_u_run_dbg_srce.htm
cdt_u_scanner_cfg_disc.htm
cdt_u_search.htm
cdt_u_search_view.htm
cdt_u_signals_view.htm
cdt_u_tasks_view.htm
cdt_u_toolbar.htm
cdt_u_type_hierarchy_view.htm
cdt_u_view_executables.htm
cdt_u_views.htm