[PATCH] D25024: [clang-tidy] Add check for detecting declarations with multiple names

Malcolm Parsons via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 28 12:22:01 PDT 2016


malcolm.parsons added a subscriber: malcolm.parsons.

================
Comment at: clang-tidy/cppcoreguidelines/OneNamePerDeclarationCheck.cpp:30
@@ +29,3 @@
+  Finder->addMatcher(
+      declStmt(declCountIsGreaterThan(1)).bind("multipleNameDeclaration"),
+      this);
----------------
Can declCountIsGreaterThan(1) be written as unless(declCountIs(1))?


https://reviews.llvm.org/D25024





More information about the cfe-commits mailing list