NoQ added inline comments.

================
Comment at: lib/StaticAnalyzer/Checkers/UndefinedAssignmentChecker.cpp:60
   // Generate a report for this bug.
+  std::string Str;
+  llvm::raw_string_ostream OS(Str);
----------------
a.sidorin wrote:
> SmallString<128>?
*recalls how it's done* Ok!


================
Comment at: lib/StaticAnalyzer/Checkers/UndefinedAssignmentChecker.cpp:98
+          if (I->getInit()->IgnoreImpCasts() == StoreE) {
+            OS << "Value assigned to field '" << I->getMember()->getName()
+               << "' is garbage or undefined";
----------------
a.sidorin wrote:
> May be it is better to print qualified name? Just name of member can be 
> misleading if base classes have members with same names.
I don't think this can happen in an implicit constructor. We'd jump to the 
base-class constructor in this case.


https://reviews.llvm.org/D43798



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

Reply via email to