Adds a check to convert fbl::move to std::move.
This check is part of a set of migration checks as we prepare to move Zircon user code to use the C++ standard library, and should prevent regressions after the migration is complete.
Paths
| Differential D54168
[clang-tidy] Zircon fbl::move -> std::move AbandonedPublic Authored by juliehockett on Nov 6 2018, 11:26 AM.
Details
Summary Adds a check to convert fbl::move to std::move. This check is part of a set of migration checks as we prepare to move Zircon user code to use the C++ standard library, and should prevent regressions after the migration is complete.
Diff Detail Event TimelineComment Actions I think this check is ok in the current form, but does it really need to be in upstream clang-tidy? You said its for migration only, so it is not valuable for you for a long time either?
Eugene.Zelenko added inline comments. Comment Actions
So yes, this check is for a migration, and we would delete it once regressions weren't possible. We would like the suite to be in upstream, however, because we use the ToT llvm/clang/tools/etc, and don't want to have to fork just to use clang-tidy for this sort of thing. Since clang-tidy doesn't provide any way to have external checks to the tool itself, upstreaming is the most ideal option. Orthogonal to our particular build setup, it'd also be nice to have an example of this sort of migration done by clang-tidy in-tree. There has been a lot of discussion recently about doing migrations with clang-tidy, but it's always describing an internal migration that uses a forked tree and a private suite of checks that can't be released. juliehockett marked 4 inline comments as done. juliehockett marked 2 inline comments as done. Comment Actions After a lot of discussion, we'll do this migration internally. Thanks for your comments!
Revision Contents
Diff 172892 clang-tools-extra/clang-tidy/zircon/CMakeLists.txt
clang-tools-extra/clang-tidy/zircon/FblMoveCheck.h
clang-tools-extra/clang-tidy/zircon/FblMoveCheck.cpp
clang-tools-extra/clang-tidy/zircon/ZirconTidyModule.cpp
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/docs/clang-tidy/checks/zircon-fbl-move.rst
clang-tools-extra/test/clang-tidy/zircon-fbl-move.cpp
|
Please highlight code with quotes (single or backticks)