[PATCH] D25647: [clang-tidy] Don't use a SmallSetVector of an enum.

Benjamin Kramer via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 21 09:04:08 PDT 2016


bkramer added inline comments.


================
Comment at: clang-tools-extra/clang-tidy/cppcoreguidelines/SpecialMemberFunctionsCheck.cpp:103
+      auto &Members = ClassWithSpecialMembers[ID];
+      if (find(Members, Kind) == Members.end()) Members.push_back(Kind);
+    }
----------------
jlebar wrote:
> aaron.ballman wrote:
> > Please drop the `push_back()` onto its own line.
> This was actually how clang-tidy formatted the line.  My understanding is that we go with that in llvm projects?  Unless you're saying I have an outdated clang-tidy, in which case I will investigate that.
It's what happens when your clang-format is using Google style. Some versions of clang-format ship with weird defaults, so you have to add -style=LLVM manually.


Repository:
  rL LLVM

https://reviews.llvm.org/D25647





More information about the cfe-commits mailing list