null-dereferences or bad control-flow red.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47140
91177308-0d34-0410-b5e6-
96231b3b80d8
Out << (*J)->toString();
}
}
- }
+ }
+
+ static std::string getNodeAttributes(const GRExprEngine::NodeTy* N, void*) {
+
+ if (GraphPrintCheckerState->isImplicitNullDeref(N) ||
+ GraphPrintCheckerState->isExplicitNullDeref(N))
+ return "color=\"red\",style=\"filled\"";
+
+ return "";
+ }
static std::string getNodeLabel(const GRExprEngine::NodeTy* N, void*) {
std::ostringstream Out;