[clang-tools-extra] [clang-tidy] Fix false positive in bugprone-use-after-move for std::tie (PR #192895)
Daniil Dudkin via cfe-commits
cfe-commits at lists.llvm.org
Sun May 3 10:48:05 PDT 2026
================
@@ -1789,4 +1790,55 @@ void Run() {
RegularReset(db6);
db6.Query();
}
+
} // namespace custom_reinitialization
+
+// Tests for std::tie() reinitialization.
+std::pair<std::string, std::string> makeStringPair(std::string a,
+ std::string b);
+
+void stdTieIsReinit() {
+ // std::tie on the LHS reinitializes all captured variables.
----------------
unterumarmung wrote:
AFAIK the current style of the repository is not describing test cases using comments, unless it is *very* not obvious from the code. You can make function names more descriptive instead (not overly descriptive also).
https://github.com/llvm/llvm-project/pull/192895
More information about the cfe-commits
mailing list