main: introduce -D cmdline option, don't auto-scan for devices Add a -D command line option which skips auto-detection of devices upon startup. This can speedup program startup for setups with known devices, and allows to skip the scan for troubled drivers which might break the startup phase. This -D option can be combined with -d specs, either presence or absence of -d is acceptable when -D is specified. Users still can interactively scan for and use devices after program startup. This resolves bug #1116.
Apply some clang-tidy fixes. This patch was generated using clang-tidy: clang-tidy -checks="-*,..." -fix The following set of checks was enabled: modernize-use-nullptr,modernize-deprecated-headers,modernize-make-shared, modernize-redundant-void-arg,modernize-use-bool-literals, modernize-use-emplace,modernize-use-equals-default, google-readability-namespace-comments,misc-unused-using-decls Add NOLINT to have clang-tidy (among other tools) ignore some lines that are not meant to be changed.
device manager: Add support for -d cmdline option (driver scan options) The previous implementation had support to auto-detect devices and to connect to and pick devices by filling in dialogs, optionally providing scan options that did not apply to auto-detection. This commit extends the existing support by introducing a -d command line option similar to sigrok-cli. In the absence of the -d command line option, behaviour is identical to the previous implementation. When -d is provided, the specified driver is excluded from the auto-detection phase, and another scan is executed afterwards where the user specified scan options take effect. This shall result in least interaction and highest reliability of device detection, while flexibility is increased. Here are examples of what the -d command line option can do: $ pulseview -d ols:conn=/dev/ttyACM0 $ pulseview -d fx2lafw $ pulseview -d demo:logic_channels=32:analog_channels=8 This fixes bug #953.
device manager: Move filter for supported devices to the scan routine Move the check for supported monotonic rate devices from the call site into the actual scan routine. The scan routine already used to (store and) return a variable length set of found devices including none, and call sites can cope with this situation. Pending extensions may call the scan routine several times, and callers shall not duplicate the extra test condition. While we expect the specific test for what's supported to change in the future.
Use the 'default' keyword where applicable. This patch was initially created using clang-tidy: clang-tidy -checks="-*,moderize-use-default" -fix However, the resulting patch only wanted to alter the definitions in the .cpp file. I think it makes more sense to remove the definitions completely and just add "= default" to the declarations in the header file.