clang
3.7.0
|
#include "clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h"
#include "clang/AST/Decl.h"
#include "clang/AST/DeclCXX.h"
#include "clang/AST/DeclObjC.h"
#include "clang/AST/Expr.h"
#include "clang/AST/ExprCXX.h"
#include "clang/AST/ParentMap.h"
#include "clang/AST/StmtCXX.h"
#include "clang/Basic/SourceManager.h"
#include "clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Support/raw_ostream.h"
Go to the source code of this file.
|
static |
Definition at line 379 of file PathDiagnostic.cpp.
References clang::ento::PathDiagnosticLocation::asLocation(), comparePath(), clang::ento::PathDiagnostic::getBugType(), clang::ento::PathDiagnostic::getCategory(), clang::ento::PathDiagnostic::getDeclWithIssue(), clang::Decl::getLocation(), clang::ento::PathDiagnostic::getLocation(), clang::FullSourceLoc::getManager(), clang::ento::PathDiagnostic::getShortDescription(), clang::ento::PathDiagnostic::getVerboseDescription(), clang::SourceManager::isBeforeInTranslationUnit(), clang::FullSourceLoc::isBeforeInTranslationUnitThan(), clang::ento::PathDiagnostic::meta_begin(), clang::ento::PathDiagnostic::meta_end(), clang::ento::PathDiagnostic::path, and SM.
Referenced by clang::ento::PathDiagnosticConsumer::FlushDiagnostics().
|
static |
Definition at line 302 of file PathDiagnostic.cpp.
References clang::ento::PathDiagnosticLocation::asLocation(), clang::ento::PathDiagnosticCallPiece::callEnter, clang::ento::PathDiagnosticCallPiece::callEnterWithin, clang::ento::PathDiagnosticCallPiece::callReturn, comparePath(), clang::FullSourceLoc::isBeforeInTranslationUnitThan(), and clang::ento::PathDiagnosticCallPiece::path.
Referenced by comparePiece().
|
static |
Definition at line 284 of file PathDiagnostic.cpp.
References clang::ento::PathDiagnosticLocation::asLocation(), clang::ento::PathDiagnosticControlFlowPiece::getEndLocation(), clang::ento::PathDiagnosticControlFlowPiece::getStartLocation(), clang::FullSourceLoc::isBeforeInTranslationUnitThan(), and clang::None.
Referenced by comparePiece().
|
static |
Definition at line 297 of file PathDiagnostic.cpp.
References comparePath(), and clang::ento::PathDiagnosticMacroPiece::subPieces.
Referenced by comparePiece().
|
static |
Definition at line 363 of file PathDiagnostic.cpp.
References comparePiece(), and clang::None.
Referenced by compare(), compareCall(), and compareMacro().
|
static |
Definition at line 319 of file PathDiagnostic.cpp.
References clang::ento::PathDiagnosticLocation::asLocation(), clang::ento::PathDiagnosticPiece::Call, compareCall(), compareControlFlow(), compareMacro(), clang::ento::PathDiagnosticPiece::ControlFlow, clang::ento::PathDiagnosticPiece::Event, clang::SourceRange::getBegin(), clang::SourceRange::getEnd(), clang::ento::PathDiagnosticPiece::getKind(), clang::ento::PathDiagnosticPiece::getLocation(), clang::FullSourceLoc::getManager(), clang::ento::PathDiagnosticPiece::getRanges(), clang::ento::PathDiagnosticPiece::getString(), clang::SourceManager::isBeforeInTranslationUnit(), clang::FullSourceLoc::isBeforeInTranslationUnitThan(), clang::ento::PathDiagnosticPiece::Macro, clang::None, and SM.
Referenced by comparePath().
|
static |
Definition at line 1040 of file PathDiagnostic.cpp.
Referenced by clang::ento::PathDiagnostic::full_size().
|
inlinestatic |
Definition at line 914 of file PathDiagnostic.cpp.
References clang::NamedDecl::getIdentifier().
Referenced by describeCodeDecl().
|
static |
Definition at line 921 of file PathDiagnostic.cpp.
References describeClass().
Referenced by clang::ento::PathDiagnosticCallPiece::getCallEnterEvent(), clang::ento::PathDiagnosticCallPiece::getCallEnterWithinCallerEvent(), and clang::ento::PathDiagnosticCallPiece::getCallExitEvent().
|
static |
Definition at line 126 of file PathDiagnostic.cpp.
References clang::ento::PathDiagnosticLocation::asLocation(), clang::ento::PathDiagnosticCallPiece::callEnter, clang::ento::PathDiagnosticCallPiece::callEnterWithin, clang::SourceManager::isInMainFile(), clang::SourceLocation::isMacroID(), and clang::ento::PathDiagnosticCallPiece::path.
Referenced by clang::ento::PathDiagnostic::resetDiagnosticLocationToMainFile().
|
static |
Definition at line 544 of file PathDiagnostic.cpp.
References clang::CFGElement::AutomaticObjectDtor, clang::CFGElement::BaseDtor, clang::CFGElement::castAs(), clang::ento::PathDiagnosticLocation::create(), clang::ento::PathDiagnosticLocation::createEnd(), clang::CFGElement::DeleteDtor, clang::LocationContext::getAnalysisDeclContext(), clang::AnalysisDeclContext::getBody(), clang::StackFrameContext::getCallSiteBlock(), clang::AnalysisDeclContext::getDecl(), clang::CFGDeleteDtor::getDeleteExpr(), clang::StackFrameContext::getIndex(), clang::CXXCtorInitializer::getInit(), clang::CFGInitializer::getInitializer(), clang::CFGElement::getKind(), clang::CFGStmt::getStmt(), clang::CFGAutomaticObjDtor::getTriggerStmt(), clang::CFGElement::Initializer, clang::CFGElement::MemberDtor, clang::CFGElement::NewAllocator, SM, clang::CFGElement::Statement, and clang::CFGElement::TemporaryDtor.
Referenced by clang::ento::PathDiagnosticCallPiece::construct(), clang::ento::PathDiagnosticLocation::create(), and clang::ento::PathDiagnosticCallPiece::setCallee().
|
static |
Definition at line 500 of file PathDiagnostic.cpp.
References clang::LocationContext::getAnalysisDeclContext(), clang::AnalysisDeclContext::getBody(), clang::AnalysisDeclContext::getDecl(), clang::Decl::getLocEnd(), clang::AnalysisDeclContext::getParentMap(), clang::SourceLocation::isValid(), and S.
Referenced by clang::ento::PathDiagnosticLocation::createBegin(), clang::ento::PathDiagnosticLocation::createEnd(), and clang::ento::PathDiagnosticLocation::createEndOfPath().
|
static |
Definition at line 43 of file PathDiagnostic.cpp.