transmission/tests/libtransmission
Charles Kerr c2fb393390
chore: fix clang-tidy-11 warnings (#1436)
* refactor: mark subclass' destructors as override.

* refactor: use QUrl to parse announce URL strings.

The prompt for this was to work around a clang-tidy issue where
"char* host = nullptr;" triggers a "don't use varargs" warning,
but on the other hand it's also terser / cleaner.

* refactor: make the TorrentDelegate brushes const.

* refactor: s/auto/auto const*/ where appropriate

* chore: add some nonconst global warning exemptions

* chore: turn off warnings in GTest

* refactor: just disable the clang-tidy warning.

Apparently a std::array<T>::iterator is a T* on clang, since clang-tidy's
readability warning says we should use 'auto*' instead of 'auto'. However
adding that annotation fails on MSVC, where the is apparently _not_ a raw
pointer.

Since there's not a way to satisfy both of them at the same time, disable
the warning.
2020-09-09 09:24:39 -05:00
..
.clang-tidy chore: fix clang-tidy-11 warnings (#1436) 2020-09-09 09:24:39 -05:00
CMakeLists.txt
Makefile.am
bitfield-test.cc
blocklist-test.cc
clients-test.cc refactor: work around msvc constxpr std::array bug (#1429) 2020-09-07 19:33:36 -05:00
crypto-test-ref.h
crypto-test.cc refactor: work around msvc constxpr std::array bug (#1429) 2020-09-07 19:33:36 -05:00
error-test.cc
file-test.cc refactor: don't store torrent hashes in QStrings (#1428) 2020-09-07 16:19:10 -05:00
getopt-test.cc refactor: work around msvc constxpr std::array bug (#1429) 2020-09-07 19:33:36 -05:00
history-test.cc
json-test.cc
magnet-test.cc refactor: work around msvc constxpr std::array bug (#1429) 2020-09-07 19:33:36 -05:00
makemeta-test.cc
metainfo-test.cc refactor: work around msvc constxpr std::array bug (#1429) 2020-09-07 19:33:36 -05:00
move-test.cc
peer-msgs-test.cc
quark-test.cc
rename-test.cc refactor: work around msvc constxpr std::array bug (#1429) 2020-09-07 19:33:36 -05:00
rpc-test.cc refactor: work around msvc constxpr std::array bug (#1429) 2020-09-07 19:33:36 -05:00
session-test.cc
subprocess-test.cc
subprocess-test.cmd
test-fixtures.h
utils-test.cc refactor: work around msvc constxpr std::array bug (#1429) 2020-09-07 19:33:36 -05:00
variant-test.cc refactor: don't store torrent hashes in QStrings (#1428) 2020-09-07 16:19:10 -05:00
watchdir-test.cc