terminal/src/cascadia/TerminalApp
Dustin L. Howett 80da24ecf8
Replace basic_string_view<T> with span<const T> (#6921)
We were using std::basic_string_view as a stand-in for std::span so that
we could change over all at once when C++20 dropped with full span
support. That day's not here yet, but as of 54a7fce3e we're using GSL 3,
whose span is C++20-compliant.

This commit replaces every instance of basic_string_view that was not
referring to an actual string with a span of the appropriate type.

I moved the `const` qualifier into span's `T` because while
`basic_string_view.at()` returns `const T&`, `span.at()` returns `T&`
(without the const). I wanted to maintain the invariant that members of
the span were immutable.

* Mechanical Changes
   * `sv.at(x)` -> `gsl::at(sp, x)`
   * `sv.c{begin,end}` -> `sp.{begin,end}` (span's iterators are const)

I had to replace a `std::basic_string<>` with a `std::vector<>` in
ConImeInfo, and I chose to replace a manual array walk in
ScreenInfoUiaProviderBase with a ranged-for. Please review those
specifically.

This will almost certainly cause a code size regression in Windows
because I'm blowing out all the PGO counts. Whoops.

Related: #3956, #975.
2020-07-15 16:40:42 +00:00
..
lib Update MUX to 2.5.0-prerelease.200609001 (#6819) 2020-07-07 23:29:30 +00:00
Resources/en-US Add support for "Always on top" mode (#6903) 2020-07-14 21:02:18 +00:00
ActionAndArgs.cpp Add support for "Always on top" mode (#6903) 2020-07-14 21:02:18 +00:00
ActionAndArgs.h Add support for the Command Palette (#6635) 2020-06-26 20:38:02 +00:00
ActionArgs.cpp Add support for the Command Palette (#6635) 2020-06-26 20:38:02 +00:00
ActionArgs.h Add support for the Command Palette (#6635) 2020-06-26 20:38:02 +00:00
ActionArgs.idl Add support for the Command Palette (#6635) 2020-06-26 20:38:02 +00:00
App.base.h Apply a GDI region to the top level Island window to allow dragging with a single Island (#929) 2019-06-25 13:06:11 -07:00
App.cpp Make Terminal look great in High Contrast (#6833) 2020-07-08 12:08:08 -07:00
App.h Break everything out of App except Xaml platform init (#3465) 2019-11-07 13:10:58 -08:00
App.idl ci: spelling: update to 0.0.15a; update whitelist (#5413) 2020-04-21 14:07:04 -07:00
App.xaml Replace the HRGN-based titlebar cutout with an overlay window (#5485) 2020-04-24 15:22:40 -07:00
AppActionHandlers.cpp Add support for "Always on top" mode (#6903) 2020-07-14 21:02:18 +00:00
AppCommandlineArgs.cpp wt.exe: Add support for "short" sub-commands (#6576) 2020-07-14 18:50:32 +00:00
AppCommandlineArgs.h wt.exe: Add support for "short" sub-commands (#6576) 2020-07-14 18:50:32 +00:00
AppKeyBindings.cpp Add support for the Command Palette (#6635) 2020-06-26 20:38:02 +00:00
AppKeyBindings.h Add warning messages for bad keybindings (#4746) 2020-03-05 21:06:58 +00:00
AppKeyBindings.idl Encapsulate dispatching ShortcutActions in it's own class (#3658) 2019-11-27 15:51:38 -06:00
AppKeyBindingsSerialization.cpp Add support for the Command Palette (#6635) 2020-06-26 20:38:02 +00:00
AppLogic.cpp Add support for "Always on top" mode (#6903) 2020-07-14 21:02:18 +00:00
AppLogic.h Add support for "Always on top" mode (#6903) 2020-07-14 21:02:18 +00:00
AppLogic.idl Add support for "Always on top" mode (#6903) 2020-07-14 21:02:18 +00:00
AzureCloudShellGenerator.cpp Implement ConnectionState and closeOnExit=graceful/always/never (#3623) 2019-11-25 14:22:29 -08:00
AzureCloudShellGenerator.h Add Dynamic Profile Generators (#2603) 2019-09-16 13:34:27 -07:00
CascadiaSettings.cpp Replace basic_string_view<T> with span<const T> (#6921) 2020-07-15 16:40:42 +00:00
CascadiaSettings.h Replace basic_string_view<T> with span<const T> (#6921) 2020-07-15 16:40:42 +00:00
CascadiaSettingsSerialization.cpp Replace manual get/set code in GlobalAppSettings with GETSET_PROPERTY (#5931) 2020-06-03 22:51:46 +00:00
ColorHelper.cpp Fix a few minor typos from #3789 (#5740) 2020-05-04 16:47:29 -05:00
ColorHelper.h Add support for setting a tab's color at runtime w/ context menu (#3789) 2020-05-04 20:57:12 +00:00
ColorPickupFlyout.cpp Add support for setting a tab's color at runtime w/ context menu (#3789) 2020-05-04 20:57:12 +00:00
ColorPickupFlyout.h Add support for setting a tab's color at runtime w/ context menu (#3789) 2020-05-04 20:57:12 +00:00
ColorPickupFlyout.idl Add support for setting a tab's color at runtime w/ context menu (#3789) 2020-05-04 20:57:12 +00:00
ColorPickupFlyout.xaml Add tooltip text to Color Buttons (#6498) 2020-07-01 19:58:53 +00:00
ColorScheme.cpp Switch the Cascadia projects to til::color where it's easily possible to do so (#5847) 2020-05-15 22:43:00 +00:00
ColorScheme.h Switch the Cascadia projects to til::color where it's easily possible to do so (#5847) 2020-05-15 22:43:00 +00:00
Command.cpp Add support for the Command Palette (#6635) 2020-06-26 20:38:02 +00:00
Command.h Add support for the Command Palette (#6635) 2020-06-26 20:38:02 +00:00
Command.idl Add support for the Command Palette (#6635) 2020-06-26 20:38:02 +00:00
CommandKeyChordVisibilityConverter.cpp Add actions missing in schema, descriptions for toggleRetroEffect (#6806) 2020-07-07 21:46:16 +00:00
CommandKeyChordVisibilityConverter.h Add actions missing in schema, descriptions for toggleRetroEffect (#6806) 2020-07-07 21:46:16 +00:00
CommandKeyChordVisibilityConverter.idl Add actions missing in schema, descriptions for toggleRetroEffect (#6806) 2020-07-07 21:46:16 +00:00
Commandline.cpp Add support for commandline args to wt.exe (#4023) 2020-01-27 15:34:12 +00:00
Commandline.h Add support for commandline args to wt.exe (#4023) 2020-01-27 15:34:12 +00:00
CommandPalette.cpp Add some logging regarding command palette usage (#6821) 2020-07-07 23:31:31 +00:00
CommandPalette.h Add some logging regarding command palette usage (#6821) 2020-07-07 23:31:31 +00:00
CommandPalette.idl Add support for the Command Palette (#6635) 2020-06-26 20:38:02 +00:00
CommandPalette.xaml Tweak the Palette's KeyChord for High Contrast mode (#6910) 2020-07-14 16:21:59 +00:00
DebugTapConnection.cpp Add a "debug tap" that lets you see the VT behind a connection (#5127) 2020-03-26 15:33:47 -07:00
DebugTapConnection.h Add explicit identifier to some constructors (#5652) 2020-04-29 16:50:47 -07:00
DefaultProfileUtils.cpp Patch the default profile and version into the settings template (#5232) 2020-04-07 11:35:05 -07:00
DefaultProfileUtils.h Add Dynamic Profile Generators (#2603) 2019-09-16 13:34:27 -07:00
defaults-universal.json Remove the rowsToScroll setting and just always use the system setting (#6891) 2020-07-14 01:38:11 +00:00
defaults.json Add support for "Always on top" mode (#6903) 2020-07-14 21:02:18 +00:00
FixVisualStudioBug.targets Fix a bunch of spelling errors across the project (#4295) 2020-02-10 20:40:01 +00:00
GlobalAppSettings.cpp Add support for "Always on top" mode (#6903) 2020-07-14 21:02:18 +00:00
GlobalAppSettings.h Add support for "Always on top" mode (#6903) 2020-07-14 21:02:18 +00:00
IDirectKeyListener.idl Pass <Alt> to the application (#6461) 2020-06-11 15:41:16 -07:00
IDynamicProfileGenerator.h Add Dynamic Profile Generators (#2603) 2019-09-16 13:34:27 -07:00
init.cpp Introduce a WinRT utils library and "checked resources" (#3350) 2019-11-01 15:47:05 -07:00
JsonUtils.cpp Switch the Cascadia projects to til::color where it's easily possible to do so (#5847) 2020-05-15 22:43:00 +00:00
JsonUtils.h Switch the Cascadia projects to til::color where it's easily possible to do so (#5847) 2020-05-15 22:43:00 +00:00
JsonUtilsNew.h Update JsonNew for IReference+cleaner optionals, and better Mappers (#6890) 2020-07-13 16:47:03 +00:00
KeyChordSerialization.cpp Fix a bunch of spelling errors across the project (#4295) 2020-02-10 20:40:01 +00:00
KeyChordSerialization.h Support remapping keybindings (#748) 2019-05-21 09:26:04 -05:00
LegacyProfileGeneratorNamespaces.h Create Telnet connection type and default loopback profile for… (#3858) 2019-12-09 11:07:08 -08:00
MinMaxCloseControl.cpp Get rid of the padding above the tab row when maximized (#5881) 2020-05-21 22:26:37 +00:00
MinMaxCloseControl.h Propagate window style changes to the titlebar and minmax (#3025) 2019-10-02 10:27:07 -07:00
MinMaxCloseControl.idl Propagate window style changes to the titlebar and minmax (#3025) 2019-10-02 10:27:07 -07:00
MinMaxCloseControl.xaml Animate Hover state change of CaptionButtons (#6303) 2020-06-02 18:50:18 +00:00
packages.config Update MUX to 2.5.0-prerelease.200609001 (#6819) 2020-07-07 23:29:30 +00:00
Pane.cpp Process actions sync. on startup; don't dupe nonexistent profile (#5090) 2020-03-25 17:03:32 -07:00
Pane.h Add explicit identifier to some constructors (#5652) 2020-04-29 16:50:47 -07:00
Pane.LayoutSizeNode.cpp Snap to character grid when resizing window (#3181) 2020-01-08 13:19:23 -08:00
pch.cpp Initial release of the Windows Terminal source code 2019-05-02 15:29:04 -07:00
pch.h Refactor TerminalApp and Add Tests for Xaml Content (#1164) 2019-07-15 14:27:56 -05:00
PowershellCoreProfileGenerator.cpp Patch the default profile and version into the settings template (#5232) 2020-04-07 11:35:05 -07:00
PowershellCoreProfileGenerator.h Patch the default profile and version into the settings template (#5232) 2020-04-07 11:35:05 -07:00
Profile.cpp Add some trace logging concerning which schemes are in use (#6803) 2020-07-07 17:01:42 +00:00
Profile.h Add some trace logging concerning which schemes are in use (#6803) 2020-07-07 17:01:42 +00:00
ShortcutActionDispatch.cpp Add support for "Always on top" mode (#6903) 2020-07-14 21:02:18 +00:00
ShortcutActionDispatch.h Add support for "Always on top" mode (#6903) 2020-07-14 21:02:18 +00:00
ShortcutActionDispatch.idl Add support for "Always on top" mode (#6903) 2020-07-14 21:02:18 +00:00
Tab.cpp Add setTabColor and openTabColorPicker actions (#6567) 2020-06-25 13:06:21 +00:00
Tab.h Add setTabColor and openTabColorPicker actions (#6567) 2020-06-25 13:06:21 +00:00
Tab.idl Convert Tab to a WinRT type (#4350) 2020-02-04 21:51:11 +00:00
TabRowControl.cpp Upgrade to Microsoft.UI.Xaml 2.2 (#3027) 2019-10-14 22:41:43 -07:00
TabRowControl.h Upgrade to Microsoft.UI.Xaml 2.2 (#3027) 2019-10-14 22:41:43 -07:00
TabRowControl.idl Upgrade to Microsoft.UI.Xaml 2.2 (#3027) 2019-10-14 22:41:43 -07:00
TabRowControl.xaml Update colors of our custom NewTab button to match MUX's TabView (#6812) 2020-07-07 13:40:01 -07:00
TelnetGenerator.h Create Telnet connection type and default loopback profile for… (#3858) 2019-12-09 11:07:08 -08:00
TerminalApp.def Initial release of the Windows Terminal source code 2019-05-02 15:29:04 -07:00
TerminalApp.vcxproj Update MUX to 2.5.0-prerelease.200609001 (#6819) 2020-07-07 23:29:30 +00:00
TerminalPage.cpp Add support for "Always on top" mode (#6903) 2020-07-14 21:02:18 +00:00
TerminalPage.h Add support for "Always on top" mode (#6903) 2020-07-14 21:02:18 +00:00
TerminalPage.idl Add support for "Always on top" mode (#6903) 2020-07-14 21:02:18 +00:00
TerminalPage.xaml Add settings to warn about large or multiline pastes (#6631) 2020-07-01 19:43:28 +00:00
TerminalWarnings.h Add explicit identifier to some constructors (#5652) 2020-04-29 16:50:47 -07:00
TitlebarControl.cpp Add support for setting a tab's color at runtime w/ context menu (#3789) 2020-05-04 20:57:12 +00:00
TitlebarControl.h Add support for setting a tab's color at runtime w/ context menu (#3789) 2020-05-04 20:57:12 +00:00
TitlebarControl.idl Upgrade to Microsoft.UI.Xaml 2.2 (#3027) 2019-10-14 22:41:43 -07:00
TitlebarControl.xaml Upgrade to Microsoft.UI.Xaml 2.2 (#3027) 2019-10-14 22:41:43 -07:00
userDefaults.json Add copyFormatting setting to all settings json files (#5404) 2020-04-20 23:49:12 +00:00
Utils.cpp Fix a bunch of spelling errors across the project (#4295) 2020-02-10 20:40:01 +00:00
Utils.h Upgrade to Microsoft.UI.Xaml 2.2 (#3027) 2019-10-14 22:41:43 -07:00
WslDistroGenerator.cpp Optimize booleans (#6548) 2020-06-22 21:51:34 +00:00
WslDistroGenerator.h Add Dynamic Profile Generators (#2603) 2019-09-16 13:34:27 -07:00