Prazek added inline comments. ================ Comment at: clang-tidy/cert/LimitedRandomnessCheck.cpp:22-23 @@ +21,4 @@ + Finder->addMatcher( + declRefExpr(hasDeclaration(functionDecl(namedDecl(hasName("::rand")), + parameterCountIs(0)))) + .bind("randomGenerator"), ---------------- aaron.ballman wrote: > This should be looking at a callExpr() rather than a declRefExpr(), should it > not? I was also thinking about this, but this is actually better, because it will also match with binding rand with function pointer.
Repository: rL LLVM https://reviews.llvm.org/D22346 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits