[PATCH] D89380: [clang-tidy] Fix for cppcoreguidelines-prefer-member-initializer to handle classes declared in macros

Alexander Kornienko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 14 07:08:10 PDT 2020


alexfh requested changes to this revision.
alexfh added inline comments.
This revision now requires changes to proceed.


================
Comment at: clang-tools-extra/clang-tidy/cppcoreguidelines/PreferMemberInitializerCheck.cpp:170
+      auto Diag =
+        diag(BeginLoc, "%0 should be initialized in an in-class"
+                       " default member initializer")
----------------
Looks like clang-format is not happy with a number of places in the file. Could you git clang-format the patch? (Or just clang-format the whole file - maybe in a separate commit - if you don't have the git integration handy.)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D89380/new/

https://reviews.llvm.org/D89380



More information about the cfe-commits mailing list