[PATCH] D72448: [clang-tidy] readability-redundant-string-init now flags redundant initialisation in Field Decls and Constructor Initialisers
Nathan James via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 9 06:27:52 PST 2020
njames93 marked an inline comment as done.
njames93 added inline comments.
================
Comment at: clang-tools-extra/test/clang-tidy/checkers/readability-redundant-string-init.cpp:244
+ // CHECK-MESSAGES: [[@LINE-1]]:11: warning: redundant string initialization
+ // CHECK-FIXES: Foo() {}
+
----------------
I'm aware the extra space between the Foo() and the braces is unsightly, but its something that clang-format would fix. Same goes for all other lines
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72448/new/
https://reviews.llvm.org/D72448
More information about the cfe-commits
mailing list