reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
  638   if (!S)
  643   while (const Stmt *Parent = getEnclosingParent(S, LC->getParentMap())) {
  648           return PathDiagnosticLocation(allowNestedContexts ? B : S, SMgr, LC);
  653         return PathDiagnosticLocation(S, SMgr, LC);
  657         if (allowNestedContexts || cast<ChooseExpr>(Parent)->getCond() == S)
  660           return PathDiagnosticLocation(S, SMgr, LC);
  666             cast<AbstractConditionalOperator>(Parent)->getCond() == S)
  669           return PathDiagnosticLocation(S, SMgr, LC);
  671         if (cast<CXXForRangeStmt>(Parent)->getBody() == S)
  672           return PathDiagnosticLocation(S, SMgr, LC);
  675           return PathDiagnosticLocation(S, SMgr, LC);
  677         if (cast<ForStmt>(Parent)->getBody() == S)
  678           return PathDiagnosticLocation(S, SMgr, LC);
  681         if (cast<IfStmt>(Parent)->getCond() != S)
  682           return PathDiagnosticLocation(S, SMgr, LC);
  685         if (cast<ObjCForCollectionStmt>(Parent)->getBody() == S)
  686           return PathDiagnosticLocation(S, SMgr, LC);
  689         if (cast<WhileStmt>(Parent)->getCond() != S)
  690           return PathDiagnosticLocation(S, SMgr, LC);
  696     S = Parent;
  699   assert(S && "Cannot have null Stmt for PathDiagnosticLocation");
  701   return PathDiagnosticLocation(S, SMgr, LC);