llvm-project
5325f2b9 - [clang-tidy][NFC] Enable 'performance-move-const-arg' in '.clang-tidy' config (#148549)

Commit
152 days ago
[clang-tidy][NFC] Enable 'performance-move-const-arg' in '.clang-tidy' config (#148549) Set `performance-move-const-arg.CheckTriviallyCopyableMove` option to `false` because "trivially copyable" is too strict and give warning for e.g. `MixData` class: https://github.com/llvm/llvm-project/blob/1fbfa333f64bf714efa84db6b1075fc864d53bf8/clang-tools-extra/clang-tidy/bugprone/EasilySwappableParametersCheck.cpp#L389 Here: https://github.com/llvm/llvm-project/blob/1fbfa333f64bf714efa84db6b1075fc864d53bf8/clang-tools-extra/clang-tidy/bugprone/EasilySwappableParametersCheck.cpp#L504-L505 I find `std::move` here useful.
Author
Parents
Loading