Alexander_Droste added inline comments.

================
Comment at: tools/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/Utility.cpp:71
@@ +70,3 @@
+  if (FR) {
+    VariableName = VR->getDecl()->getNameAsString() + "." +
+                   FR->getDecl()->getNameAsString();
----------------
This is incorrect if the struct/class is nested in another struct/class.
VR points to the base region of the field region.
How can this be improved so that the name of the next enclosing 
struct/class instance is obtained, instead of the outermost?


http://reviews.llvm.org/D12761



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

Reply via email to