clang  6.0.0svn
Classes | Public Member Functions | List of all members
clang::sema::AnalysisBasedWarnings Class Reference

#include "clang/Sema/AnalysisBasedWarnings.h"

Classes

class  Policy
 

Public Member Functions

 AnalysisBasedWarnings (Sema &s)
 
void IssueWarnings (Policy P, FunctionScopeInfo *fscope, const Decl *D, const BlockExpr *blkExpr)
 
Policy getDefaultPolicy ()
 
void PrintStats () const
 

Detailed Description

Definition at line 33 of file AnalysisBasedWarnings.h.

Constructor & Destructor Documentation

◆ AnalysisBasedWarnings()

clang::sema::AnalysisBasedWarnings::AnalysisBasedWarnings ( Sema s)

Definition at line 2038 of file AnalysisBasedWarnings.cpp.

References clang::Sema::getDiagnostics(), and isEnabled().

Member Function Documentation

◆ getDefaultPolicy()

Policy clang::sema::AnalysisBasedWarnings::getDefaultPolicy ( )
inline

Definition at line 96 of file AnalysisBasedWarnings.h.

◆ IssueWarnings()

void clang::sema::AnalysisBasedWarnings::IssueWarnings ( Policy  P,
sema::FunctionScopeInfo fscope,
const Decl D,
const BlockExpr blkExpr 
)

Definition at line 2072 of file AnalysisBasedWarnings.cpp.

References clang::CFG::BuildOptions::AddCXXDefaultInitExprInCtors, clang::CFG::BuildOptions::AddCXXNewAllocator, clang::CFG::BuildOptions::AddEHEdges, clang::CFG::BuildOptions::AddImplicitDtors, clang::CFG::BuildOptions::AddInitializers, clang::CFG::BuildOptions::AddTemporaryDtors, CheckFallThroughForBody(), checkRecursiveFunction(), checkThrowInNonThrowingFunc(), CheckUnreachable(), clang::Sema::CollectStats, clang::Sema::Diag(), diagnoseRepeatedUseOfWeak(), DiagnoseSwitchLabelsFallthrough(), flushDiagnostics(), clang::AnalysisDeclContext::getBlockForRegisteredExpression(), clang::Decl::getBody(), clang::AnalysisDeclContext::getCFG(), clang::AnalysisDeclContext::getCFGBuildOptions(), clang::AnalysisDeclContext::getCFGReachablityAnalysis(), clang::AnalysisDeclContext::getDecl(), clang::Sema::getDiagnostics(), clang::CFG::getEntry(), clang::Sema::getLangOpts(), clang::Decl::getLocation(), clang::Decl::getLocEnd(), clang::Decl::getLocStart(), clang::CFG::getNumBlockIDs(), clang::AnalysisDeclContext::getParentMap(), clang::DiagnosticsEngine::getSuppressSystemWarnings(), clang::sema::FunctionScopeInfo::HasFallthroughStmt, clang::DiagnosticsEngine::hasUncompilableErrorOccurred(), clang::AnalysisDeclContext::isCFGBuilt(), clang::sema::FunctionScopeInfo::isCoroutine(), clang::DiagnosticsEngine::isIgnored(), clang::SourceManager::isInSystemHeader(), isNoexcept(), clang::CFGReverseBlockReachabilityAnalysis::isReachable(), clang::isTemplateInstantiation(), max(), clang::UninitVariablesAnalysisStats::NumBlockVisits, clang::UninitVariablesAnalysisStats::NumVariablesAnalyzed, clang::CFG::BuildOptions::Observer, clang::sema::FunctionScopeInfo::PossiblyUnreachableDiags, clang::CFG::BuildOptions::PruneTriviallyFalseEdges, clang::AnalysisDeclContext::registerForcedBlockExpression(), clang::consumed::ConsumedAnalyzer::run(), clang::threadSafety::runThreadSafetyAnalysis(), clang::runUninitializedVariablesAnalysis(), clang::CFG::BuildOptions::setAllAlwaysAdd(), clang::CFG::BuildOptions::setAlwaysAdd(), clang::Sema::SourceMgr, and clang::Sema::ThreadSafetyDeclCache.

Referenced by flushDiagnostics(), and clang::Sema::PopFunctionScopeInfo().

◆ PrintStats()

void clang::sema::AnalysisBasedWarnings::PrintStats ( ) const

Definition at line 2310 of file AnalysisBasedWarnings.cpp.

Referenced by clang::Sema::PrintStats().


The documentation for this class was generated from the following files: