george.karpenkov added inline comments.

================
Comment at: 
lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedObjectChecker.cpp:468
+static bool isUnionLike(const RecordDecl *RD) {
+  llvm::Regex ContainsKindOrTag("[kK]ind|[tT]ag");
+
----------------
1. Since you are using `match`, you would reject an extra prefix - but what 
about an extra suffix?
2. Would it make sense to expose the entire regexp as a flag? Then you could 
remove the boolean flag (if you can change the regexp to match if only the 
entire field name matches, then an empty regexp would correspond to "no 
matches")


https://reviews.llvm.org/D51680



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

Reply via email to