alexfh added inline comments.

================
Comment at: clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp:284
@@ -283,2 +283,3 @@
       varDecl(isDefinition(), HasDefaultConstructor,
+              hasAutomaticStorageDuration(),
               hasType(recordDecl(has(fieldDecl()),
----------------
aaron.ballman wrote:
> We should add a test that this still diagnoses variables with dynamic storage 
> duration. Alternatively, this could be 
> `unless(anyOf(hasStaticStorageDuration(), hasThreadStorageDuration()))`
I don't think it ever diagnosed on the dynamic storage duration, since it 
doesn't match `cxxNewExpr` ;)


http://reviews.llvm.org/D19672



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to