[PATCH] D27621: [clang-tidy] check to find declarations declaring more than one name

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 23 07:38:42 PST 2017


aaron.ballman added inline comments.


================
Comment at: clang-tidy/readability/OneNamePerDeclarationCheck.cpp:37-38
+  const auto *DeclStatement = Result.Nodes.getNodeAs<DeclStmt>("declstmt");
+  if (!DeclStatement)
+    return;
+
----------------
Is there a case where this could happen? I would have imagined this as an `assert()`, if anything.


https://reviews.llvm.org/D27621





More information about the cfe-commits mailing list