[PATCH] D97142: [clang-tidy] Simplify unused RAII check
Nathan James via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Feb 21 06:46:02 PST 2021
njames93 added inline comments.
================
Comment at: clang-tools-extra/test/clang-tidy/checkers/bugprone-unused-raii.cpp:49-53
+struct CtorDefaultArg {
+ CtorDefaultArg(int i = 0);
+ ~CtorDefaultArg();
+};
+
----------------
Its not obvious from the code, but this should work if there are multiple default args. Can that behaviour be demonstrated?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D97142/new/
https://reviews.llvm.org/D97142
More information about the cfe-commits
mailing list