clang 20.0.0git
|
Stmt - This represents one statement. More...
#include "clang/AST/Stmt.h"
Public Types | |
enum | StmtClass { NoStmtClass = 0 } |
enum | Likelihood { LH_Unlikely = -1 , LH_None , LH_Likely } |
The likelihood of a branch being taken. More... | |
using | child_iterator = StmtIterator |
Child Iterators: All subclasses must implement 'children' to permit easy iteration over the substatements/subexpressions of an AST node. | |
using | const_child_iterator = ConstStmtIterator |
using | child_range = llvm::iterator_range< child_iterator > |
using | const_child_range = llvm::iterator_range< const_child_iterator > |
Public Member Functions | |
void * | operator new (size_t bytes, const ASTContext &C, unsigned alignment=8) |
void * | operator new (size_t bytes, const ASTContext *C, unsigned alignment=8) |
void * | operator new (size_t bytes, void *mem) noexcept |
void | operator delete (void *, const ASTContext &, unsigned) noexcept |
void | operator delete (void *, const ASTContext *, unsigned) noexcept |
void | operator delete (void *, size_t) noexcept |
void | operator delete (void *, void *) noexcept |
Stmt ()=delete | |
Stmt (const Stmt &)=delete | |
Stmt (Stmt &&)=delete | |
Stmt & | operator= (const Stmt &)=delete |
Stmt & | operator= (Stmt &&)=delete |
Stmt (StmtClass SC) | |
StmtClass | getStmtClass () const |
const char * | getStmtClassName () const |
SourceRange | getSourceRange () const LLVM_READONLY |
SourceLocation tokens are not useful in isolation - they are low level value objects created/interpreted by SourceManager. | |
SourceLocation | getBeginLoc () const LLVM_READONLY |
SourceLocation | getEndLoc () const LLVM_READONLY |
void | dump () const |
Dumps the specified AST fragment and all subtrees to llvm::errs() . | |
void | dump (raw_ostream &OS, const ASTContext &Context) const |
int64_t | getID (const ASTContext &Context) const |
void | dumpColor () const |
dumpColor - same as dump(), but forces color highlighting. | |
void | dumpPretty (const ASTContext &Context) const |
dumpPretty/printPretty - These two methods do a "pretty print" of the AST back to its original source language syntax. | |
void | printPretty (raw_ostream &OS, PrinterHelper *Helper, const PrintingPolicy &Policy, unsigned Indentation=0, StringRef NewlineSymbol="\n", const ASTContext *Context=nullptr) const |
void | printPrettyControlled (raw_ostream &OS, PrinterHelper *Helper, const PrintingPolicy &Policy, unsigned Indentation=0, StringRef NewlineSymbol="\n", const ASTContext *Context=nullptr) const |
void | printJson (raw_ostream &Out, PrinterHelper *Helper, const PrintingPolicy &Policy, bool AddQuotes) const |
Pretty-prints in JSON format. | |
void | viewAST () const |
viewAST - Visualize an AST rooted at this Stmt* using GraphViz. | |
Stmt * | IgnoreContainers (bool IgnoreCaptured=false) |
Skip no-op (attributed, compound) container stmts and skip captured stmt at the top, if IgnoreCaptured is true. | |
const Stmt * | IgnoreContainers (bool IgnoreCaptured=false) const |
const Stmt * | stripLabelLikeStatements () const |
Strip off all label-like statements. | |
Stmt * | stripLabelLikeStatements () |
child_range | children () |
const_child_range | children () const |
child_iterator | child_begin () |
child_iterator | child_end () |
const_child_iterator | child_begin () const |
const_child_iterator | child_end () const |
void | Profile (llvm::FoldingSetNodeID &ID, const ASTContext &Context, bool Canonical, bool ProfileLambdaExpr=false) const |
Produce a unique representation of the given statement. | |
void | ProcessODRHash (llvm::FoldingSetNodeID &ID, ODRHash &Hash) const |
Calculate a unique representation for a statement that is stable across compiler invocations. | |
Static Public Member Functions | |
static void | addStmtClass (const StmtClass s) |
static void | EnableStatistics () |
static void | PrintStats () |
static Likelihood | getLikelihood (ArrayRef< const Attr * > Attrs) |
static Likelihood | getLikelihood (const Stmt *S) |
static const Attr * | getLikelihoodAttr (const Stmt *S) |
static Likelihood | getLikelihood (const Stmt *Then, const Stmt *Else) |
static std::tuple< bool, const Attr *, const Attr * > | determineLikelihoodConflict (const Stmt *Then, const Stmt *Else) |
Protected Types | |
enum | { NumStmtBits = 8 } |
enum | { NumExprBits = NumStmtBits + 5 + llvm::BitWidth<ExprDependence> } |
enum | { NumCallExprBits = 32 } |
enum | { NumOverloadExprBits = NumExprBits + 1 } |
template<typename T > | |
using | ConstCastIterator = CastIterator< T, const T *const, const Stmt *const > |
Const iterator for iterating over Stmt * arrays that contain only T *. | |
using | ExprIterator = CastIterator< Expr > |
using | ConstExprIterator = ConstCastIterator< Expr > |
Protected Member Functions | |
void * | operator new (size_t bytes) noexcept |
void | operator delete (void *data) noexcept |
Stmt (StmtClass SC, EmptyShell) | |
Construct an empty statement. | |
Friends | |
class | ASTStmtReader |
class | ASTStmtWriter |
using clang::Stmt::child_range = llvm::iterator_range<child_iterator> |
using clang::Stmt::const_child_range = llvm::iterator_range<const_child_iterator> |
|
protected |
|
protected |
|
protected |
|
inlineexplicitprotected |
|
delete |
|
delete |
|
delete |
|
inline |
Definition at line 1354 of file Stmt.h.
References addStmtClass(), and StmtBits.
|
static |
Definition at line 126 of file Stmt.cpp.
References StmtClassNameTable::Counter, getStmtInfoTableEntry(), and s.
Referenced by Stmt().
|
inline |
Definition at line 1462 of file Stmt.h.
References children().
Referenced by llvm::GraphTraits< clang::Stmt * >::child_begin(), llvm::GraphTraits< const clang::Stmt * >::child_begin(), clang::DesignatedInitExpr::getInit(), isAncestorDeclContextOf(), isIdenticalStmt(), and clang::DesignatedInitExpr::setInit().
|
inline |
Definition at line 1465 of file Stmt.h.
References children().
|
inline |
Definition at line 1463 of file Stmt.h.
References children().
Referenced by llvm::GraphTraits< clang::Stmt * >::child_end(), llvm::GraphTraits< const clang::Stmt * >::child_end(), isAncestorDeclContextOf(), and isIdenticalStmt().
|
inline |
Definition at line 1466 of file Stmt.h.
References children().
Stmt::child_range Stmt::children | ( | ) |
Definition at line 287 of file Stmt.cpp.
References getStmtClass(), and NoStmtClass.
Referenced by clang::Sema::ActOnFinishFunctionBody(), AnalyzeImplicitConversions(), CheckConstexprFunctionBody(), CheckNakedParmReference(), checkNoThrow(), child_begin(), child_end(), children(), clang::Expr::HasSideEffects(), isCapturedBy(), isSimdSupportedByOpenMPIRBuilder(), IsStructurallyEquivalent(), clang::ento::retaincountchecker::RetainCountChecker::processObjCLiterals(), and GlobalDeclRefChecker::VisitExpr().
|
inline |
Definition at line 1457 of file Stmt.h.
References children().
|
static |
true
there's a conflict and the Attr's are the conflicting attributes of the Then and Else Stmt. Definition at line 185 of file Stmt.cpp.
References getLikelihood(), and LH_None.
Referenced by clang::Sema::ActOnIfStmt().
LLVM_DUMP_METHOD void Stmt::dump | ( | ) | const |
Dumps the specified AST fragment and all subtrees to llvm::errs()
.
Definition at line 289 of file ASTDumper.cpp.
References P.
Referenced by clang::Sema::ActOnPragmaDump(), and clang::FunctionEffectsRef::dump().
LLVM_DUMP_METHOD void Stmt::dump | ( | raw_ostream & | OS, |
const ASTContext & | Context | ||
) | const |
Definition at line 294 of file ASTDumper.cpp.
References clang::ASTContext::getDiagnostics(), clang::DiagnosticsEngine::getShowColors(), and P.
LLVM_DUMP_METHOD void Stmt::dumpColor | ( | ) | const |
dumpColor - same as dump(), but forces color highlighting.
Definition at line 300 of file ASTDumper.cpp.
References P.
void Stmt::dumpPretty | ( | const ASTContext & | Context | ) | const |
dumpPretty/printPretty - These two methods do a "pretty print" of the AST back to its original source language syntax.
Definition at line 2811 of file StmtPrinter.cpp.
References clang::ASTContext::getLangOpts(), and printPretty().
|
static |
Definition at line 131 of file Stmt.cpp.
Referenced by clang::ParseAST().
SourceLocation Stmt::getBeginLoc | ( | ) | const |
Definition at line 338 of file Stmt.cpp.
References getStmtClass(), and NoStmtClass.
Referenced by clang::SemaOpenACC::ActOnArraySectionExpr(), clang::Sema::ActOnArraySubscriptExpr(), clang::SemaOpenACC::ActOnAssociatedStmt(), clang::Sema::ActOnCondition(), clang::Sema::ActOnCXXDelete(), clang::Sema::ActOnCXXForRangeStmt(), clang::Sema::ActOnFinishSwitchStmt(), clang::Sema::ActOnGCCAsmStmt(), clang::Sema::ActOnIfStmt(), clang::Sema::ActOnMSAsmStmt(), clang::Sema::ActOnNoexceptSpec(), clang::SemaOpenMP::ActOnOpenMPAtomicDirective(), clang::SemaOpenMP::ActOnOpenMPDispatchDirective(), clang::SemaOpenMP::ActOnOpenMPDistScheduleClause(), clang::SemaOpenMP::ActOnOpenMPInterchangeDirective(), clang::SemaOpenMP::ActOnOpenMPLinearClause(), clang::SemaOpenMP::ActOnOpenMPMessageClause(), clang::SemaOpenMP::ActOnOpenMPOrderedDirective(), clang::SemaOpenMP::ActOnOpenMPReverseDirective(), clang::SemaOpenMP::ActOnOpenMPScheduleClause(), clang::SemaOpenMP::ActOnOpenMPTileDirective(), clang::SemaOpenMP::ActOnOpenMPUnrollDirective(), clang::Sema::ActOnPackIndexingExpr(), clang::Sema::ActOnStmtExprResult(), clang::Sema::AddAllocAlignAttr(), clang::Sema::AddConversionCandidate(), clang::SemaObjC::adornBoolConversionDiagWithTernaryFixit(), AnalyzeAssignment(), AnalyzeBitFieldAssignment(), AnalyzeImplicitConversions(), clang::Sema::BuildArrayType(), clang::Sema::BuildAtomicExpr(), clang::Sema::BuildBuiltinOffsetOf(), clang::Sema::BuildCallToMemberFunction(), buildCaptureDecl(), BuildConvertedConstantExpression(), clang::Sema::BuildCXXAssumeExpr(), clang::Sema::BuildCXXDefaultArgExpr(), clang::Sema::BuildCXXMemberCallExpr(), clang::Sema::BuildCXXNew(), clang::Sema::BuildCXXThrow(), clang::Sema::BuildCXXTypeConstructExpr(), clang::Sema::BuildDeclarationNameExpr(), clang::Sema::BuildDeclRefExpr(), clang::SemaObjC::BuildInstanceMessage(), BuildNonArrayForRange(), clang::Sema::BuildPackIndexingExpr(), clang::Sema::BuildPackIndexingType(), clang::Sema::BuildResolvedCallExpr(), clang::Sema::BuildReturnStmt(), clang::Sema::BuildStaticAssertDeclaration(), clang::Sema::BuildVAArgExpr(), BuiltinAnnotation(), BuiltinCountZeroBitsGeneric(), BuiltinDumpStruct(), clang::Sema::BuiltinElementwiseTernaryMath(), BuiltinOverflow(), BuiltinPopcountg(), clang::SemaPPC::BuiltinPPCMMACall(), clang::Sema::BuiltinShuffleVector(), clang::Sema::BuiltinVectorMath(), clang::SemaPPC::BuiltinVSX(), clang::SemaWasm::BuiltinWasmTableCopy(), clang::SemaWasm::BuiltinWasmTableFill(), clang::SemaWasm::BuiltinWasmTableGrow(), calculateConstraintSatisfaction(), clang::Sema::CanPerformCopyInitialization(), castForMoving(), CastForMoving(), clang::Sema::CheckAddressOfOperand(), CheckArgsTypesAreCorrect(), checkArithmeticOrEnumeralThreeWayCompare(), clang::SemaARM::CheckARMCoprocessorImmediate(), clang::Sema::CheckAssignmentConstraints(), clang::Sema::CheckAssignmentOperands(), CheckAtomicAlignment(), clang::SemaBPF::CheckBPFBuiltinFunctionCall(), clang::SemaOpenCL::checkBuiltinEnqueueKernel(), clang::SemaX86::CheckBuiltinFunctionCall(), clang::SemaOpenCL::checkBuiltinKernelWorkGroupSize(), clang::SemaOpenCL::checkBuiltinNDRangeAndBlock(), checkBuiltinVerboseTrap(), clang::Sema::CheckConditionalOperands(), CheckConstexprFunctionBody(), clang::SemaObjC::CheckConversionToObjCLiteral(), clang::SemaOpenMP::checkDeclIsAllowedInOpenMPTarget(), CheckEvalInICE(), checkExprMemoryConstraintCompat(), CheckFallThroughForBody(), CheckFoldOperand(), clang::Sema::CheckFunctionDeclaration(), CheckICE(), clang::SemaObjC::CheckImplementationIvars(), clang::Sema::CheckMemberPointerConversion(), CheckMoveOnConstruction(), CheckNakedParmReference(), clang::SemaARM::CheckNeonBuiltinFunctionCall(), CheckNonTypeTemplatePartialSpecializationArgs(), clang::SemaObjC::CheckObjCBridgeRelatedConversions(), CheckObjCCollectionLiteralElement(), clang::SemaObjC::CheckObjCString(), clang::checkOpenCLEnqueueIntType(), clang::SemaOpenMP::checkOpenMPDeclareVariantFunction(), checkOpenMPLoop(), checkParamIsIntegerType(), clang::checkPipeArg(), clang::Sema::CheckPlaceholderExpr(), clang::Sema::CheckPointerToMemberOperands(), checkRecursiveFunction(), checkSectionsDirective(), clang::Sema::CheckSingleAssignmentConstraints(), CheckStmtInlineAttr(), CheckStringInit(), clang::Sema::checkStringLiteralArgumentAttr(), clang::SemaSystemZ::CheckSystemZBuiltinFunctionCall(), clang::Sema::CheckTemplateArgument(), CheckTemplateArgumentAddressOfObjectOrFunction(), CheckTemplateArgumentIsCompatibleWithParameter(), CheckTemplateArgumentPointerToMember(), checkThreeWayNarrowingConversion(), clang::Sema::checkVariadicArgument(), CheckVectorElementCallArgs(), clang::CheckWasmBuiltinArgIsInteger(), clang::CheckWasmBuiltinArgIsTable(), clang::Sema::ConstantFoldAttrArgs(), ConvertForConditional(), clang::Sema::ConvertMemberDefaultInitExpression(), clang::Sema::CorrectDelayedTyposInExpr(), clang::Sema::CreateBuiltinArraySubscriptExpr(), clang::Sema::CreateBuiltinBinOp(), clang::Sema::CreateBuiltinMatrixSubscriptExpr(), CreateIfFixit(), clang::Sema::CreateLaunchBoundsAttr(), CreateNewFunctionDecl(), createOverloadsForFixedParams(), clang::Sema::DefaultVariadicArgumentPromotion(), clang::InitializationSequence::Diagnose(), clang::Sema::DiagnoseAlwaysNonNullPointer(), clang::Sema::DiagnoseAssignmentAsCondition(), DiagnoseBitwisePrecedence(), DiagnoseCastQual(), clang::Sema::DiagnoseCommaOperator(), DiagnoseConditionalPrecedence(), clang::Sema::DiagnoseEmptyLoopBody(), clang::Sema::DiagnoseImmediateEscalatingReason(), DiagnoseIndirectOrAsmJumpStmt(), DiagnoseLabelFollowedByDecl(), diagnoseLogicalNotOnLHSofCheck(), clang::ODRDiagsEmitter::diagnoseMismatch(), clang::Sema::DiagnoseMultipleUserDefinedConversion(), DiagnoseNarrowingInInitList(), diagnoseNoViableConversion(), diagnoseObjCLiteralComparison(), diagnoseRepeatedUseOfWeak(), DiagnoseShiftCompare(), diagnoseStringPlusChar(), diagnoseStringPlusInt(), diagnoseTautologicalComparison(), clang::Sema::DiagnoseUnexpandedParameterPack(), DiagnoseUninitializedConstRefUse(), diagnoseUnsatisfiedRequirement(), diagnoseWellFormedUnsatisfiedConstraintExpr(), clang::Sema::diagnoseZeroToNullptrConversion(), DiagUninitUse(), emitAndFixInvalidAsmCastLValue(), emitOutlinedFunctionPrologue(), clang::Sema::EvaluateConvertedConstantExpression(), evaluateVarDeclInit(), clang::Sema::GatherArgumentsForCall(), getAndVerifyMatrixDimension(), clang::StmtSequence::getBeginLoc(), clang::UserDefinedLiteral::getBeginLoc(), clang::MSPropertyRefExpr::getBeginLoc(), clang::OMPCanonicalLoop::getBeginLoc(), clang::ConstantExpr::getBeginLoc(), clang::OpaqueValueExpr::getBeginLoc(), clang::ImaginaryLiteral::getBeginLoc(), clang::ArraySubscriptExpr::getBeginLoc(), clang::MatrixSubscriptExpr::getBeginLoc(), clang::CallExpr::getBeginLoc(), clang::MemberExpr::getBeginLoc(), clang::ImplicitCastExpr::getBeginLoc(), clang::BinaryOperator::getBeginLoc(), clang::ConditionalOperator::getBeginLoc(), clang::BinaryConditionalOperator::getBeginLoc(), clang::DesignatedInitUpdateExpr::getBeginLoc(), clang::ExtVectorElementExpr::getBeginLoc(), clang::PseudoObjectExpr::getBeginLoc(), clang::ArraySectionExpr::getBeginLoc(), clang::CXXRewrittenBinaryOperator::getBeginLoc(), clang::CXXStdInitializerListExpr::getBeginLoc(), clang::MSPropertySubscriptExpr::getBeginLoc(), clang::CXXBindTemporaryExpr::getBeginLoc(), clang::ExprWithCleanups::getBeginLoc(), clang::PackExpansionExpr::getBeginLoc(), clang::MaterializeTemporaryExpr::getBeginLoc(), clang::CXXFoldExpr::getBeginLoc(), clang::ObjCIvarRefExpr::getBeginLoc(), clang::ObjCPropertyRefExpr::getBeginLoc(), clang::ObjCSubscriptRefExpr::getBeginLoc(), clang::ObjCIsaExpr::getBeginLoc(), clang::CapturedStmt::getBeginLoc(), getExprText(), DerefSimplePtrArithFixableGadget::getFixits(), UUCAddAssignGadget::getFixits(), clang::PackIndexingExpr::getPackLoc(), clang::CXXRewrittenBinaryOperator::getSourceRange(), clang::ento::PathDiagnosticLocation::getValidSourceLocation(), handleAlwaysInlineAttr(), handleDiagnoseAsBuiltinAttr(), handleDiagnoseIfAttr(), handleFallThroughAttr(), handleHLSLLoopHintAttr(), handleLoopHintAttr(), handleNoConvergentAttr(), handleNoInlineAttr(), handleNoMergeAttr(), HandleOperatorNewCall(), handlePassObjectSizeAttr(), handlePatchableFunctionEntryAttr(), clang::Sema::ImpCastExprToType(), clang::AnalysisDeclContext::isBodyAutosynthesizedFromModelFile(), IsEnumConstOrFromMacro(), IsInitializerListConstructorConversion(), clang::Sema::IsIntegralPromotion(), clang::Sema::IsMemberPointerConversion(), isNullPointerValueTemplateArgument(), clang::Sema::IsPointerConversion(), clang::Expr::isUnusedResultAWarning(), IsUserDefinedConversion(), IsVectorConversion(), clang::Sema::MarkMemberReferenced(), MatchTemplateParameterKind(), maybeDiagnoseAssignmentToFunction(), clang::Sema::MaybeEmitAmbiguousAtomicConstraintsDiagnostic(), clang::Parser::ParseConstraintLogicalAndExpression(), clang::ento::ConditionBRVisitor::patternMatch(), clang::InitializationSequence::Perform(), clang::Sema::PerformContextuallyConvertToBool(), clang::Sema::PerformCopyInitialization(), clang::Sema::PerformImplicitConversion(), clang::Sema::PerformImplicitObjectArgumentInitialization(), clang::Sema::PrepareBuiltinElementwiseMathOneArgCall(), clang::ento::ExprEngine::ProcessStmt(), ProcessStmtAttribute(), removePunyEdges(), clang::Sema::ResolveAndFixSingleFunctionTemplateSpecialization(), rewriteToArrayLiteral(), rewriteToDictionaryLiteral(), clang::CodeGen::CGOpenMPRuntime::scanForTargetRegionsFunctions(), clang::TopLevelStmtDecl::setStmt(), clang::Sema::SubstDefaultArgument(), clang::Sema::TemplateParameterListsAreEqual(), EnsureImmediateInvocationInDefaultArgs::TransformSourceLocExpr(), TryClassUnification(), clang::Sema::tryConvertExprToType(), TryCopyInitialization(), TryImplicitConversion(), TryLValueToRValueCast(), TryOrBuildParenListInitialization(), TryUserDefinedConversion(), clang::Sema::VerifyIntegerConstantExpression(), clang::ASTNodeImporter::VisitArrayTypeTraitExpr(), clang::ASTNodeImporter::VisitCXXDefaultInitExpr(), clang::ASTNodeImporter::VisitCXXDeleteExpr(), clang::TemplateDeclInstantiator::VisitCXXMethodDecl(), clang::ASTNodeImporter::VisitCXXNoexceptExpr(), clang::ASTNodeImporter::VisitExpr(), clang::ASTNodeImporter::VisitExpressionTraitExpr(), clang::TemplateDeclInstantiator::VisitFunctionDecl(), clang::ASTNodeImporter::VisitGNUNullExpr(), clang::ento::SuppressInlineDefensiveChecksVisitor::VisitNode(), clang::ASTNodeImporter::VisitPredefinedExpr(), clang::ASTNodeImporter::VisitShuffleVectorExpr(), clang::ASTNodeImporter::VisitSourceLocExpr(), and clang::ASTNodeImporter::VisitTypeTraitExpr().
SourceLocation Stmt::getEndLoc | ( | ) | const |
Definition at line 350 of file Stmt.cpp.
References getStmtClass(), and NoStmtClass.
Referenced by clang::SemaOpenACC::ActOnArraySectionExpr(), clang::Sema::ActOnCondition(), clang::Sema::ActOnFinishSwitchStmt(), clang::Sema::ActOnLambdaExpr(), clang::SemaOpenMP::ActOnOpenMPInterchangeDirective(), clang::SemaOpenMP::ActOnOpenMPReverseDirective(), clang::SemaOpenMP::ActOnOpenMPTileDirective(), clang::SemaOpenMP::ActOnOpenMPUnrollDirective(), clang::Sema::ActOnParamDefaultArgumentError(), addBlockPointerConversion(), addFunctionPointerConversion(), clang::SemaObjC::adornBoolConversionDiagWithTernaryFixit(), clang::Sema::BuildCStyleCastExpr(), clang::Sema::BuildCXXMemberCallExpr(), clang::Sema::BuildDeclarationNameExpr(), clang::Sema::BuildReturnStmt(), BuiltinDumpStruct(), clang::Sema::BuiltinShuffleVector(), clang::SemaPPC::BuiltinVSX(), CheckFallThroughForBody(), CheckFoldOperand(), clang::Sema::CheckLogicalOperands(), clang::SemaObjC::CheckObjCBridgeRelatedConversions(), clang::Sema::CheckPointerToMemberOperands(), CheckVectorElementCallArgs(), clang::Sema::ConvertMemberDefaultInitExpression(), clang::Sema::CorrectDelayedTyposInExpr(), clang::Sema::CreateBuiltinBinOp(), CreateIfFixit(), clang::ento::CXXDestructorCall::CXXDestructorCall(), clang::Sema::DefaultVariadicArgumentPromotion(), clang::Sema::DiagnoseAlwaysNonNullPointer(), DiagnoseBitwisePrecedence(), clang::Sema::DiagnoseCommaOperator(), DiagnoseConditionalPrecedence(), DiagnoseDirectIsaAccess(), diagnoseLogicalNotOnLHSofCheck(), DiagnoseNarrowingInInitList(), diagnoseNoViableConversion(), diagnoseObjCLiteralComparison(), clang::Sema::DiagnoseSentinelCalls(), DiagnoseShiftCompare(), diagnoseStringPlusChar(), diagnoseStringPlusInt(), clang::CodeGen::CGObjCRuntime::EmitTryCatchStmt(), clang::ObjCIsaExpr::getBaseLocEnd(), clang::StmtSequence::getEndLoc(), clang::ForStmt::getEndLoc(), clang::SEHTryStmt::getEndLoc(), clang::CXXTryStmt::getEndLoc(), clang::OMPCanonicalLoop::getEndLoc(), clang::ConstantExpr::getEndLoc(), clang::OpaqueValueExpr::getEndLoc(), clang::ImaginaryLiteral::getEndLoc(), clang::CallExpr::getEndLoc(), clang::MemberExpr::getEndLoc(), clang::ImplicitCastExpr::getEndLoc(), clang::CStyleCastExpr::getEndLoc(), clang::BinaryOperator::getEndLoc(), clang::ConditionalOperator::getEndLoc(), clang::BinaryConditionalOperator::getEndLoc(), clang::DesignatedInitExpr::getEndLoc(), clang::DesignatedInitUpdateExpr::getEndLoc(), clang::BlockExpr::getEndLoc(), clang::PseudoObjectExpr::getEndLoc(), clang::CXXRewrittenBinaryOperator::getEndLoc(), clang::CXXStdInitializerListExpr::getEndLoc(), clang::CXXThrowExpr::getEndLoc(), clang::CXXBindTemporaryExpr::getEndLoc(), clang::CXXConstructExpr::getEndLoc(), clang::CXXFunctionalCastExpr::getEndLoc(), clang::CXXTemporaryObjectExpr::getEndLoc(), clang::CXXDeleteExpr::getEndLoc(), clang::ExprWithCleanups::getEndLoc(), clang::CXXUnresolvedConstructExpr::getEndLoc(), clang::MaterializeTemporaryExpr::getEndLoc(), clang::CXXFoldExpr::getEndLoc(), clang::CoroutineSuspendExpr::getEndLoc(), clang::DependentCoawaitExpr::getEndLoc(), clang::ObjCStringLiteral::getEndLoc(), clang::ObjCBridgedCastExpr::getEndLoc(), clang::OMPArrayShapingExpr::getEndLoc(), clang::CaseStmt::getEndLoc(), clang::DefaultStmt::getEndLoc(), clang::LabelStmt::getEndLoc(), clang::AttributedStmt::getEndLoc(), clang::IfStmt::getEndLoc(), clang::SwitchStmt::getEndLoc(), clang::WhileStmt::getEndLoc(), clang::ReturnStmt::getEndLoc(), clang::CapturedStmt::getEndLoc(), clang::CXXCatchStmt::getEndLoc(), clang::CXXForRangeStmt::getEndLoc(), clang::MSDependentExistsStmt::getEndLoc(), clang::CoreturnStmt::getEndLoc(), clang::ObjCForCollectionStmt::getEndLoc(), clang::ObjCAtCatchStmt::getEndLoc(), clang::ObjCAtFinallyStmt::getEndLoc(), clang::ObjCAtTryStmt::getEndLoc(), clang::ObjCAtThrowStmt::getEndLoc(), clang::ObjCAutoreleasePoolStmt::getEndLoc(), UUCAddAssignGadget::getFixits(), clang::CXXRewrittenBinaryOperator::getSourceRange(), clang::FieldDecl::getSourceRange(), clang::TopLevelStmtDecl::getSourceRange(), clang::BlockDecl::getSourceRange(), clang::ConceptDecl::getSourceRange(), isNullPointerValueTemplateArgument(), clang::Expr::isUnusedResultAWarning(), clang::Parser::ParseConstraintLogicalAndExpression(), clang::ento::ConditionBRVisitor::patternMatch(), rewriteToArrayLiteral(), rewriteToDictionaryLiteral(), clang::consumed::ConsumedAnalyzer::run(), clang::FunctionDecl::setBody(), clang::Declarator::setTrailingRequiresClause(), EnsureImmediateInvocationInDefaultArgs::TransformSourceLocExpr(), TryOrBuildParenListInitialization(), clang::ASTNodeImporter::VisitArrayTypeTraitExpr(), clang::TemplateDeclInstantiator::VisitCXXMethodDecl(), clang::ASTNodeImporter::VisitCXXNoexceptExpr(), clang::ASTNodeImporter::VisitExpressionTraitExpr(), clang::TemplateDeclInstantiator::VisitFunctionDecl(), clang::ASTNodeImporter::VisitLambdaExpr(), clang::ASTNodeImporter::VisitSourceLocExpr(), and clang::ASTNodeImporter::VisitTypeTraitExpr().
int64_t Stmt::getID | ( | const ASTContext & | Context | ) | const |
Definition at line 362 of file Stmt.cpp.
References clang::ASTContext::getAllocator().
Referenced by clang::ento::AllocaRegion::dumpToStream(), clang::ento::CompoundLiteralRegion::dumpToStream(), clang::ento::CXXTempObjectRegion::dumpToStream(), clang::ento::CXXLifetimeExtendedObjectRegion::dumpToStream(), clang::ento::SymbolConjured::dumpToStream(), printIndicesOfElementsToConstructJson(), and printPendingInitLoopJson().
|
static |
Definition at line 155 of file Stmt.cpp.
Referenced by determineLikelihoodConflict(), and getLikelihood().
|
static |
|
static |
Definition at line 167 of file Stmt.cpp.
References getLikelihood(), LH_Likely, LH_None, and LH_Unlikely.
Definition at line 163 of file Stmt.cpp.
Referenced by clang::Sema::ActOnIfStmt().
SourceRange Stmt::getSourceRange | ( | ) | const |
SourceLocation tokens are not useful in isolation - they are low level value objects created/interpreted by SourceManager.
We assume AST clients will have a pointer to the respective SourceManager.
Definition at line 326 of file Stmt.cpp.
References getStmtClass(), and NoStmtClass.
Referenced by clang::Sema::ActOnCapScopeReturnStmt(), clang::Sema::ActOnCastExpr(), clang::Sema::ActOnCXXDelete(), clang::Sema::ActOnCXXFoldExpr(), clang::Sema::ActOnCXXForRangeStmt(), clang::Sema::ActOnCXXMemberDeclarator(), clang::Sema::ActOnDependentMemberExpr(), clang::Sema::ActOnDesignatedInitializer(), clang::Sema::ActOnEffectExpression(), clang::Sema::ActOnFinishSwitchStmt(), clang::Sema::ActOnGCCAsmStmt(), clang::SemaOpenACC::ActOnIntExpr(), clang::Sema::ActOnMSAsmStmt(), clang::SemaObjC::ActOnObjCAtSynchronizedOperand(), clang::SemaOpenMP::ActOnOMPArraySectionExpr(), clang::SemaOpenMP::ActOnOMPIteratorExpr(), clang::SemaOpenMP::ActOnOpenMPAllocateDirective(), clang::SemaOpenMP::ActOnOpenMPAtomicDirective(), clang::SemaOpenMP::ActOnOpenMPDeclareSimdDirective(), clang::SemaOpenMP::ActOnOpenMPDependClause(), clang::SemaOpenMP::ActOnOpenMPDepobjClause(), clang::SemaOpenMP::ActOnOpenMPDetachClause(), clang::SemaOpenMP::ActOnOpenMPDistScheduleClause(), clang::SemaOpenMP::ActOnOpenMPHasDeviceAddrClause(), clang::SemaOpenMP::ActOnOpenMPIsDevicePtrClause(), clang::SemaOpenMP::ActOnOpenMPScheduleClause(), clang::Sema::ActOnParamDefaultArgument(), clang::Sema::ActOnStartLinkageSpecification(), clang::Sema::ActOnStartOfSwitchStmt(), clang::Sema::AddAlignedAttr(), clang::Sema::AddAlignValueAttr(), clang::Sema::AddAssumeAlignedAttr(), addFixitForObjCARCConversion(), clang::interp::AddSubMulHelper(), AnalyzeBitFieldAssignment(), AnalyzeComparison(), AnalyzeImplicitConversions(), applyCocoaAPICheck(), BuildAddressSpaceIndex(), clang::Sema::BuildArrayType(), clang::Sema::BuildAsTypeExpr(), clang::Sema::BuildAtomicExpr(), clang::Sema::BuildBuiltinOffsetOf(), clang::Sema::BuildCallToMemberFunction(), buildCoawaitCalls(), clang::Sema::BuildCompoundLiteralExpr(), BuildConvertedConstantExpression(), clang::Sema::BuildCXXNew(), clang::Sema::BuildCXXTypeConstructExpr(), clang::Sema::BuildDeclaratorGroup(), clang::Sema::BuildExtVectorType(), clang::SemaObjC::BuildInstanceMessage(), clang::Sema::BuildMatrixType(), clang::Sema::BuildMemberReferenceExpr(), clang::Sema::BuildNestedRequirement(), clang::SemaObjC::BuildObjCAtThrowStmt(), clang::SemaObjC::BuildObjCBoxedExpr(), clang::SemaObjC::BuildObjCBridgedCast(), clang::SemaObjC::BuildObjCNumericLiteral(), clang::Sema::BuildReturnStmt(), clang::Sema::BuildStaticAssertDeclaration(), clang::Sema::BuildVAArgExpr(), clang::Sema::BuildVectorLiteral(), clang::Sema::BuildVectorType(), BuiltinAnnotation(), clang::SemaARM::BuiltinARMMemoryTaggingCall(), clang::SemaARM::BuiltinARMSpecialReg(), BuiltinCallWithStaticChain(), clang::Sema::BuiltinConstantArg(), clang::Sema::BuiltinConstantArgMultiple(), clang::Sema::BuiltinConstantArgPower2(), clang::Sema::BuiltinConstantArgRange(), clang::Sema::BuiltinConstantArgShiftedByte(), clang::Sema::BuiltinConstantArgShiftedByteOrXXFF(), BuiltinCpu(), BuiltinFunctionStart(), BuiltinLaunder(), BuiltinMSVCAnnotation(), BuiltinOverflow(), clang::Sema::BuiltinShuffleVector(), clang::SemaWasm::BuiltinWasmTableCopy(), clang::SemaWasm::BuiltinWasmTableFill(), clang::SemaWasm::BuiltinWasmTableGrow(), calculateConstraintSatisfaction(), clang::interp::CallPtr(), clang::interp::CallVirt(), castForMoving(), CastForMoving(), clang::Sema::CheckAddressOfMemberAccess(), clang::Sema::CheckAddressOfOperand(), CheckAlignOfExpr(), checkAllocateClauses(), clang::SemaAMDGPU::CheckAMDGCNBuiltinFunctionCall(), clang::checkAMDGPUMaxNumWorkGroupsArguments(), checkArithmeticBinOpPointerOperands(), checkArithmeticNull(), checkArithmeticOnObjCPointer(), clang::SemaARM::CheckARMBuiltinExclusiveCall(), clang::SemaARM::CheckARMCoprocessorImmediate(), clang::checkArmStreamingBuiltin(), clang::Sema::CheckBooleanCondition(), clang::SemaBPF::CheckBPFBuiltinFunctionCall(), clang::SemaRISCV::CheckBuiltinFunctionCall(), clang::SemaX86::CheckBuiltinGatherScatterScale(), clang::SemaX86::CheckBuiltinRoundingOrSAE(), clang::SemaOpenCL::checkBuiltinRWPipe(), CheckBuiltinTargetInSupported(), CheckBuiltinTargetNotInUnsupported(), clang::SemaX86::CheckBuiltinTileDuplicate(), checkBuiltinVerboseTrap(), clang::Sema::CheckCallReturnType(), clang::Sema::CheckCastAlign(), clang::Sema::CheckCompareOperands(), clang::Sema::CheckCompleteVariableDeclaration(), checkCondition(), checkConditionalBlockPointerCompatibility(), clang::Sema::CheckConditionalOperands(), checkConditionalPointerCompatibility(), clang::Sema::checkConstantPointerAuthKey(), clang::Sema::CheckConstraintExpression(), CheckCXX98CompatAccessibleCopy(), clang::Sema::CheckCXXThrowOperand(), clang::SemaOpenMP::checkDeclIsAllowedInOpenMPTarget(), CheckedIntArithmetic(), checkEnumArithmeticConversions(), clang::Sema::CheckEnumConstant(), checkEnumTypesInSwitchStmt(), clang::Sema::CheckExceptionSpecCompatibility(), checkExprMemoryConstraintCompat(), clang::Sema::CheckExtraCXXDefaultArguments(), clang::Sema::CheckFloatComparison(), CheckFoldOperand(), clang::Sema::CheckForConstantInitializer(), CheckFormatString(), CheckForModifiableLvalue(), clang::Sema::CheckFunctionCall(), clang::Sema::checkFunctionOrMethodParameterIndex(), clang::Sema::CheckImplicitConversion(), CheckIncrementDecrementOperand(), checkIndirectCopyRestoreSource(), CheckIndirectionOperand(), CheckKeyForObjCARCConversion(), clang::SemaRISCV::CheckLMUL(), clang::Sema::CheckLogicalOperands(), checkMapClauseExpressionBase(), checkMapConflicts(), checkMappableExpressionList(), clang::Sema::CheckMemberOperatorAccess(), clang::Sema::CheckMemberPointerConversion(), clang::SemaObjC::CheckMessageArgumentTypes(), clang::SemaARM::CheckNeonBuiltinFunctionCall(), clang::interp::CheckNewDeleteForms(), CheckNonNullArgument(), CheckObjCCollectionLiteralElement(), clang::SemaObjC::CheckObjCForCollectionOperand(), checkObjCPointerIntrospection(), clang::SemaObjC::CheckObjCString(), checkOpenCLConditionVector(), clang::SemaOpenMP::checkOpenMPDeclareVariantFunction(), checkOpenMPIterationSpace(), checkOpenMPLoop(), clang::Sema::CheckPackExpansion(), clang::checkPipeArg(), clang::checkPipePacketType(), checkPointerAuthEnabled(), checkPointerAuthValue(), clang::Sema::CheckPointerConversion(), checkPointerIntegerMismatch(), clang::Sema::CheckPointerToMemberOperands(), clang::SemaPPC::CheckPPCBuiltinFunctionCall(), checkPreviousOMPAllocateAttribute(), clang::Sema::CheckRegparmAttr(), checkSimdlenSafelenSpecified(), clang::Sema::CheckSingleAssignmentConstraints(), clang::Sema::CheckSizelessVectorOperands(), checkSizelessVectorShift(), clang::SemaARM::CheckSMEBuiltinFunctionCall(), clang::Sema::CheckStaticArrayArgument(), CheckStringInit(), clang::Sema::CheckSubtractionOperands(), clang::Sema::CheckSwitchCondition(), clang::SemaSystemZ::CheckSystemZBuiltinFunctionCall(), CheckTautologicalComparison(), clang::Sema::CheckTemplateArgument(), CheckTemplateArgumentAddressOfObjectOrFunction(), CheckTemplateArgumentIsCompatibleWithParameter(), CheckTemplateArgumentPointerToMember(), clang::Sema::CheckTemplateIdType(), clang::Sema::CheckTypenameType(), clang::Sema::checkUInt32Argument(), clang::Sema::CheckUnaryExprOrTypeTraitOperand(), clang::Sema::CheckUnresolvedLookupAccess(), clang::Sema::CheckUnresolvedMemberAccess(), checkUnsafeAssignLiteral(), checkUnsafeAssignObject(), clang::Sema::checkUnsafeExprAssigns(), clang::Sema::CheckUseOfCXXMethodAsAddressOfOperand(), clang::Sema::CheckVariableDeclarationType(), clang::Sema::CheckVectorOperands(), checkVectorShift(), clang::CheckWasmBuiltinArgIsInteger(), clang::CheckWasmBuiltinArgIsTable(), constructDebugPieceForTrackedCondition(), clang::Sema::ConvertVectorExpr(), CopyObject(), clang::Sema::CreateBuiltinArraySubscriptExpr(), clang::Sema::CreateBuiltinUnaryOp(), clang::Sema::CreateGenericSelectionExpr(), clang::Sema::CreateLaunchBoundsAttr(), CreateNewFunctionDecl(), clang::Sema::CreateOverloadedBinOp(), clang::Sema::CreateOverloadedUnaryOp(), clang::Sema::CreateUnaryExprOrTypeTraitExpr(), clang::Sema::CXXCheckConditionalOperands(), clang::Sema::DeduceFunctionTypeFromReturnExpr(), clang::Sema::deduceVarTypeFromInitializer(), clang::InitializationSequence::Diagnose(), diagnoseAddressOfInvalidType(), clang::Sema::DiagnoseAlwaysNonNullPointer(), diagnoseAmbiguousConversion(), diagnoseArithmeticOnTwoFunctionPointers(), diagnoseArithmeticOnTwoVoidPointers(), clang::Sema::DiagnoseAssignmentAsCondition(), clang::Sema::DiagnoseAssignmentResult(), diagnoseBadCast(), DiagnoseBadDivideOrRemainderValues(), DiagnoseBadFunctionCast(), DiagnoseBadShiftValues(), DiagnoseCastOfObjCSEL(), clang::Sema::DiagnoseCommaOperator(), clang::Sema::DiagnoseConditionalForNull(), DiagnoseConstAssignment(), diagnoseDistinctPointerComparison(), DiagnoseDivisionSizeofPointerOrArray(), clang::Sema::DiagnoseEqualityWithExtraParens(), DiagnoseFailedExplicitSpec(), DiagnoseFloatingImpCast(), diagnoseFunctionPointerToVoidComparison(), clang::Sema::DiagnoseImmediateEscalatingReason(), DiagnoseImpCast(), clang::ODRDiagsEmitter::diagnoseMismatch(), clang::Sema::DiagnoseMultipleUserDefinedConversion(), DiagnoseNarrowingInInitList(), DiagnoseNullConversion(), diagnosePointerIncompatibility(), DiagnoseRecursiveConstFields(), diagnoseRepeatedUseOfWeak(), clang::diagnoseRetainCycle(), DiagnoseSelfAssignment(), clang::Sema::DiagnoseSelfMove(), DiagnoseShiftCompare(), diagnoseTautologicalComparison(), DiagnoseUninitializedConstRefUse(), diagnoseUnknownAnyExpr(), DiagnoseUnusedComparison(), diagnoseWellFormedUnsatisfiedConstraintExpr(), clang::Sema::diagnoseZeroToNullptrConversion(), DiagRecursiveConstraintEval(), DiagUninitUse(), doRewriteToUTF8StringBoxedExpressionHelper(), emitAndFixInvalidAsmCastLValue(), emitBug(), EmitDiagnosticForLogicalAndInLogicalOr(), clang::CodeGen::CGOpenMPRuntime::emitIfClause(), EvaluateArrayTypeTrait(), clang::Sema::EvaluateConvertedConstantExpression(), clang::Sema::FinalizeDeclaration(), clang::SemaObjC::FindCompositeObjCPointerType(), FindConditionalOverload(), clang::findRetainCycleOwner(), findSubobject(), findTemplateParameterInType(), finishContextualImplicitConversion(), clang::ento::CallEvent::getArgSourceRange(), clang::ParmVarDecl::getDefaultArgRange(), clang::syntax::TreeBuilder::getExprRange(), clang::Sema::getExprRange(), clang::CountAttributedTypeLoc::getLocalSourceRange(), getNumThreads(), getPrivateItem(), clang::interp::SourceInfo::getRange(), clang::ObjCMessageExpr::getReceiverRange(), clang::ento::CallEvent::getSourceRange(), clang::CXXStdInitializerListExpr::getSourceRange(), clang::CapturedStmt::getSourceRange(), clang::TemplateArgumentLoc::getSourceRange(), clang::ento::ObjCMethodCall::getSourceRange(), GetUnreachableLoc(), handleCallbackAttr(), HandleConstructorCall(), clang::SemaObjC::HandleExprPropertyRefExpr(), handleFormatArgAttr(), handleFormatAttr(), HandleFunctionCall(), handleInitPriorityAttr(), clang::SemaM68k::handleInterruptAttr(), clang::SemaMSP430::handleInterruptAttr(), handleIntIntBinOp(), handleLayoutVersion(), handleNonNullAttr(), handleOpenCLUnrollHint(), handleOwnershipAttr(), handlePassObjectSizeAttr(), handleSentinelAttr(), handleWorkGroupSize(), clang::Expr::IgnoreUnlessSpelledInSource(), clang::Sema::ImpCastExprToType(), clang::interp::IncDecHelper(), clang::interp::interp__builtin_is_constant_evaluated(), clang::Sema::InvalidLogicalVectorOperands(), clang::Sema::InvalidOperands(), isConfigurationValue(), isNonNegativeIntegerValue(), isNullPointerValueTemplateArgument(), clang::Expr::isUnusedResultAWarning(), LookupMemberExpr(), LookupMemberExprInRecord(), makeLaunchBoundsArgExpr(), clang::interp::InterpState::maybeDiagnoseDanglingAllocations(), clang::Sema::MaybeEmitAmbiguousAtomicConstraintsDiagnostic(), maybePutParensOnReceiver(), clang::interp::Neg(), objectifyExpr(), OpenCLArithmeticConversions(), clang::Parser::ParseConstraintLogicalAndExpression(), clang::SemaARM::ParseSVEImmChecks(), clang::ento::ConditionBRVisitor::patternMatch(), clang::InitializationSequence::Perform(), clang::Sema::PerformContextualImplicitConversion(), clang::Sema::PerformContextuallyConvertToBool(), clang::Sema::PerformImplicitConversion(), clang::Sema::PerformImplicitObjectArgumentInitialization(), clang::Sema::PerformObjectMemberConversion(), PointerAuthStringDiscriminator(), populateExecutedLinesWithFunctionSignature(), printExprAsWritten(), printIndicesOfElementsToConstructJson(), printPendingInitLoopJson(), clang::tooling::reallyIgnoreImplicit(), recordConversion(), clang::tooling::replaceStmtWithStmt(), clang::tooling::replaceStmtWithText(), clang::Sema::ResolveAndFixSingleFunctionTemplateSpecialization(), resolveBuiltinNewDeleteOverload(), clang::edit::rewriteObjCRedundantCallWithLiteral(), rewriteToArrayLiteral(), rewriteToArraySubscriptSet(), rewriteToBoolLiteral(), rewriteToCharLiteral(), rewriteToDictionaryLiteral(), rewriteToDictionarySubscriptSet(), rewriteToNumberLiteral(), rewriteToNumericBoxedExpression(), rewriteToSubscriptGetCommon(), clang::TreeTransform< Derived >::TransformExprs(), tryDiagnoseOverloadedCast(), TryOrBuildParenListInitialization(), TryReinterpretCast(), clang::ConversionFixItGenerator::tryToFixConversion(), clang::Sema::tryToRecoverWithCall(), clang::Sema::ValueIsRunOfOnes(), clang::Sema::VerifyBitField(), clang::Sema::VerifyIntegerConstantExpression(), clang::SemaOpenMP::VerifyPositiveIntegerConstantInClause(), clang::ASTNodeImporter::VisitCXXNewExpr(), clang::ASTNodeImporter::VisitCXXTypeidExpr(), and clang::Sema::WarnOnPendingNoDerefs().
|
inline |
Definition at line 1363 of file Stmt.h.
References StmtBits.
Referenced by clang::ast_matchers::AST_MATCHER(), checkFormatStringExpr(), CheckICE(), clang::SemaObjC::CheckLiteralKind(), children(), ClassifyInternal(), DiagUninitUse(), FindTypeTagExpr(), getBaseAlignmentAndOffsetFromLValue(), getBaseAlignmentAndOffsetFromPtr(), getBeginLoc(), clang::CXXNamedCastExpr::getCastName(), clang::ento::SValBuilder::getConstantVal(), getEndLoc(), clang::Expr::getExprLoc(), getLoopCondition(), clang::ento::ObjCMethodCall::getMessageKind(), clang::OMPLoopTransformationDirective::getPreInits(), getPrimaryDecl(), clang::threadSafety::getSourceLiteralString(), getSourceRange(), clang::CastExpr::getTrailingFPFeatures(), clang::OMPLoopTransformationDirective::getTransformedStmt(), clang::Expr::HasSideEffects(), ignoreTransparentExprs(), clang::Expr::isConstantInitializer(), IsGlobalLValue(), isIdenticalStmt(), isInLoopBody(), isLoop(), clang::Expr::isOBJCGCCandidate(), isObjCObjectLiteral(), clang::Expr::isSameComparisonOperand(), clang::Expr::isUnusedResultAWarning(), rebuildPotentialResultsAsNonOdrUsed(), requiresParensToAddCast(), clang::TreeTransform< Derived >::TransformCXXNamedCastExpr(), clang::TreeTransform< Derived >::TransformExpr(), clang::ASTNodeImporter::VisitExplicitCastExpr(), clang::ento::ConditionBRVisitor::VisitTerminator(), and clang::ento::ConditionBRVisitor::VisitTrueTest().
const char * Stmt::getStmtClassName | ( | ) | const |
Definition at line 79 of file Stmt.cpp.
References getStmtInfoTableEntry(), StmtClassNameTable::Name, and StmtBits.
Referenced by print_elem(), printIndicesOfElementsToConstructJson(), printPendingInitLoopJson(), and clang::ASTNodeImporter::VisitExpr().
Skip no-op (attributed, compound) container stmts and skip captured stmt at the top, if IgnoreCaptured is true.
Definition at line 197 of file Stmt.cpp.
Referenced by clang::SemaOpenMP::ActOnOpenMPTargetDirective(), checkOpenMPLoop(), clang::OMPLoopBasedDirective::doForAllLoops(), getNestedDistributeDirective(), clang::CodeGen::CGOpenMPRuntime::getNumTeamsExprForTargetDirective(), clang::CodeGen::CGOpenMPRuntime::getSingleCompoundChild(), IgnoreContainers(), and clang::OMPLoopBasedDirective::tryToFindNextInnerLoop().
Definition at line 1436 of file Stmt.h.
References IgnoreContainers().
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlineprotectednoexcept |
|
inlineprotectednoexcept |
void * Stmt::operator new | ( | size_t | bytes, |
const ASTContext & | C, | ||
unsigned | alignment = 8 |
||
) |
|
inline |
|
inlinenoexcept |
void Stmt::printJson | ( | raw_ostream & | Out, |
PrinterHelper * | Helper, | ||
const PrintingPolicy & | Policy, | ||
bool | AddQuotes | ||
) | const |
Pretty-prints in JSON format.
Definition at line 2830 of file StmtPrinter.cpp.
References clang::JsonFormat(), and printPretty().
void Stmt::printPretty | ( | raw_ostream & | OS, |
PrinterHelper * | Helper, | ||
const PrintingPolicy & | Policy, | ||
unsigned | Indentation = 0 , |
||
StringRef | NewlineSymbol = "\n" , |
||
const ASTContext * | Context = nullptr |
||
) | const |
Definition at line 2815 of file StmtPrinter.cpp.
References P.
Referenced by clang::Sema::DiagnoseAlwaysNonNullPointer(), DiagTemplateArg(), clang::ento::CallEvent::dump(), dumpPretty(), clang::ento::StringRegion::dumpToStream(), clang::ento::ObjCStringRegion::dumpToStream(), clang::Sema::findFailedBooleanCondition(), clang::TemplateArgument::print(), print(), print_block(), clang::FunctionProtoType::printExceptionSpecification(), printExplicitSpecifier(), printJson(), and clang::APValue::printPretty().
void Stmt::printPrettyControlled | ( | raw_ostream & | OS, |
PrinterHelper * | Helper, | ||
const PrintingPolicy & | Policy, | ||
unsigned | Indentation = 0 , |
||
StringRef | NewlineSymbol = "\n" , |
||
const ASTContext * | Context = nullptr |
||
) | const |
Definition at line 2822 of file StmtPrinter.cpp.
References P.
|
static |
Definition at line 101 of file Stmt.cpp.
References StmtClassNameTable::Counter, getStmtInfoTableEntry(), StmtClassNameTable::Name, StmtClassNameTable::Size, and StmtClassInfo.
Referenced by clang::ParseAST().
void Stmt::ProcessODRHash | ( | llvm::FoldingSetNodeID & | ID, |
ODRHash & | Hash | ||
) | const |
Calculate a unique representation for a statement that is stable across compiler invocations.
ID | profile information will be stored in ID. |
Hash | an ODRHash object which will be called where pointers would have been used in the Profile function. |
Definition at line 2656 of file StmtProfile.cpp.
void Stmt::Profile | ( | llvm::FoldingSetNodeID & | ID, |
const ASTContext & | Context, | ||
bool | Canonical, | ||
bool | ProfileLambdaExpr = false |
||
) | const |
Produce a unique representation of the given statement.
ID | once the profiling operation is complete, will contain the unique representation of the given statement. |
Context | the AST context in which the statement resides |
Canonical | whether the profile should be based on the canonical representation of this statement (e.g., where non-type template parameters are identified by index/level rather than their declaration pointers) or the exact representation of the statement as written in the source. |
ProfileLambdaExpr | whether or not to profile lambda expressions. When false, the lambda expressions are never considered to be equal to other lambda expressions. When true, the lambda expressions with the same implementation will be considered to be the same. ProfileLambdaExpr should only be true when we try to merge two declarations within modules. |
Definition at line 2650 of file StmtProfile.cpp.
Referenced by actOnOMPReductionKindClause(), clang::SemaOpenMP::ActOnOpenMPAtomicDirective(), clang::Sema::AreConstraintExpressionsEqual(), checkDeducedTemplateArguments(), clang::CheckEquivalentExceptionSpecImpl(), checkPreviousOMPAllocateAttribute(), DiagRecursiveConstraintEval(), getAllocatorKind(), clang::ASTContext::hasSameExpr(), IsOverloadOrOverrideImpl(), clang::ASTContext::isSameConstraintExpr(), clang::ASTContext::isSameDefaultTemplateArgument(), isSameTemplateArg(), clang::Sema::MaybeEmitAmbiguousAtomicConstraintsDiagnostic(), clang::APValue::Profile(), clang::TemplateArgument::Profile(), clang::DependentBitIntType::Profile(), clang::DependentDecltypeType::Profile(), clang::DependentTypeOfExprType::Profile(), clang::DependentVectorType::Profile(), clang::DependentSizedMatrixType::Profile(), clang::DependentSizedExtVectorType::Profile(), clang::DependentSizedArrayType::Profile(), clang::PackIndexingType::Profile(), clang::DependentAddressSpaceType::Profile(), and clang::ConstantArrayType::Profile().
|
inline |
Definition at line 1441 of file Stmt.h.
References stripLabelLikeStatements().
const Stmt * Stmt::stripLabelLikeStatements | ( | ) | const |
Strip off all label-like statements.
This will strip off label statements, case statements, attributed statements and default statements recursively.
Definition at line 219 of file Stmt.cpp.
Referenced by stripLabelLikeStatements().
void Stmt::viewAST | ( | ) | const |
viewAST - Visualize an AST rooted at this Stmt* using GraphViz.
Only works on systems with GraphViz (Mac OS X) or dot+gv installed.
Definition at line 20 of file StmtViz.cpp.
|
friend |
|
friend |
union { ... } clang::Stmt::@84 |
ArrayOrMatrixSubscriptExprBitfields clang::Stmt::ArrayOrMatrixSubscriptExprBits |
Definition at line 1231 of file Stmt.h.
Referenced by clang::ArraySubscriptExpr::ArraySubscriptExpr(), clang::ArraySubscriptExpr::getRBracketLoc(), clang::MatrixSubscriptExpr::getRBracketLoc(), clang::MatrixSubscriptExpr::MatrixSubscriptExpr(), clang::ArraySubscriptExpr::setRBracketLoc(), and clang::MatrixSubscriptExpr::setRBracketLoc().
AttributedStmtBitfields clang::Stmt::AttributedStmtBits |
Definition at line 1209 of file Stmt.h.
Referenced by clang::AttributedStmt::getAttrLoc(), and clang::AttributedStmt::getAttrs().
BinaryOperatorBitfields clang::Stmt::BinaryOperatorBits |
Definition at line 1235 of file Stmt.h.
Referenced by clang::BinaryOperator::BinaryOperator(), clang::BinaryOperator::getFPFeatures(), clang::BinaryOperator::getFPFeaturesInEffect(), clang::BinaryOperator::getOpcode(), clang::BinaryOperator::getOperatorLoc(), clang::BinaryOperator::getTrailingFPFeatures(), clang::BinaryOperator::hasExcludedOverflowPattern(), clang::BinaryOperator::hasStoredFPFeatures(), clang::BinaryOperator::offsetOfTrailingStorage(), clang::BinaryOperator::setExcludedOverflowPattern(), clang::BinaryOperator::setHasStoredFPFeatures(), clang::BinaryOperator::setOpcode(), clang::BinaryOperator::setOperatorLoc(), and clang::BinaryOperator::setStoredFPFeatures().
BreakStmtBitfields clang::Stmt::BreakStmtBits |
Definition at line 1217 of file Stmt.h.
Referenced by clang::BreakStmt::getBreakLoc(), and clang::BreakStmt::setBreakLoc().
CallExprBitfields clang::Stmt::CallExprBits |
Definition at line 1232 of file Stmt.h.
Referenced by clang::CallExpr::CallExpr(), clang::CallExpr::getADLCallKind(), clang::CallExpr::getNumPreArgs(), clang::CallExpr::getTrailingFPFeatures(), clang::CallExpr::hasStoredFPFeatures(), and clang::CallExpr::setADLCallKind().
CastExprBitfields clang::Stmt::CastExprBits |
Definition at line 1234 of file Stmt.h.
Referenced by clang::CastExpr::CastExpr(), clang::CastExpr::getCastKind(), clang::CastExpr::hasStoredFPFeatures(), clang::ImplicitCastExpr::isPartOfExplicitCast(), clang::CastExpr::path_size(), clang::CastExpr::setCastKind(), and clang::ImplicitCastExpr::setIsPartOfExplicitCast().
CharacterLiteralBitfields clang::Stmt::CharacterLiteralBits |
Definition at line 1228 of file Stmt.h.
Referenced by clang::CharacterLiteral::CharacterLiteral(), clang::CharacterLiteral::getKind(), and clang::CharacterLiteral::setKind().
CoawaitExprBitfields clang::Stmt::CoawaitBits |
Definition at line 1272 of file Stmt.h.
Referenced by clang::CoawaitExpr::CoawaitExpr(), clang::CoawaitExpr::isImplicit(), and clang::CoawaitExpr::setIsImplicit().
CompoundStmtBitfields clang::Stmt::CompoundStmtBits |
Definition at line 1207 of file Stmt.h.
Referenced by clang::CompoundStmt::body_empty(), clang::CompoundStmt::CompoundStmt(), clang::CompoundStmt::CreateEmpty(), clang::CompoundStmt::hasStoredFPFeatures(), and clang::CompoundStmt::size().
ConstantExprBitfields clang::Stmt::ConstantExprBits |
Definition at line 1223 of file Stmt.h.
Referenced by clang::ConstantExpr::getAPValueResult(), clang::ConstantExpr::getResultAPValueKind(), clang::ConstantExpr::getResultAsAPSInt(), clang::ConstantExpr::getResultStorageKind(), clang::ConstantExpr::hasAPValueResult(), clang::ConstantExpr::isImmediateInvocation(), and clang::ConstantExpr::MoveIntoResult().
ContinueStmtBitfields clang::Stmt::ContinueStmtBits |
Definition at line 1216 of file Stmt.h.
Referenced by clang::ContinueStmt::getContinueLoc(), and clang::ContinueStmt::setContinueLoc().
CXXBoolLiteralExprBitfields clang::Stmt::CXXBoolLiteralExprBits |
Definition at line 1248 of file Stmt.h.
Referenced by clang::CXXBoolLiteralExpr::CXXBoolLiteralExpr(), clang::CXXBoolLiteralExpr::getLocation(), clang::CXXBoolLiteralExpr::getValue(), clang::CXXBoolLiteralExpr::setLocation(), and clang::CXXBoolLiteralExpr::setValue().
CXXConstructExprBitfields clang::Stmt::CXXConstructExprBits |
Definition at line 1259 of file Stmt.h.
Referenced by clang::CXXConstructExpr::CXXConstructExpr(), clang::CXXConstructExpr::getConstructionKind(), clang::CXXConstructExpr::getLocation(), clang::CXXConstructExpr::hadMultipleCandidates(), clang::CXXConstructExpr::isElidable(), clang::CXXConstructExpr::isImmediateEscalating(), clang::CXXConstructExpr::isListInitialization(), clang::CXXConstructExpr::isStdInitListInitialization(), clang::CXXConstructExpr::requiresZeroInitialization(), clang::CXXConstructExpr::setConstructionKind(), clang::CXXConstructExpr::setElidable(), clang::CXXConstructExpr::setHadMultipleCandidates(), clang::CXXConstructExpr::setIsImmediateEscalating(), clang::CXXConstructExpr::setListInitialization(), clang::CXXConstructExpr::setLocation(), clang::CXXConstructExpr::setRequiresZeroInitialization(), and clang::CXXConstructExpr::setStdInitListInitialization().
CXXDefaultArgExprBitfields clang::Stmt::CXXDefaultArgExprBits |
Definition at line 1252 of file Stmt.h.
Referenced by clang::CXXDefaultArgExpr::getExpr(), clang::CXXDefaultArgExpr::getUsedLocation(), and clang::CXXDefaultArgExpr::hasRewrittenInit().
CXXDefaultInitExprBitfields clang::Stmt::CXXDefaultInitExprBits |
Definition at line 1253 of file Stmt.h.
Referenced by clang::CXXDefaultInitExpr::getBeginLoc(), clang::CXXDefaultInitExpr::getEndLoc(), and clang::CXXDefaultInitExpr::hasRewrittenInit().
CXXDeleteExprBitfields clang::Stmt::CXXDeleteExprBits |
Definition at line 1256 of file Stmt.h.
Referenced by clang::CXXDeleteExpr::CXXDeleteExpr(), clang::CXXDeleteExpr::doesUsualArrayDeleteWantSize(), clang::CXXDeleteExpr::getBeginLoc(), clang::CXXDeleteExpr::isArrayForm(), clang::CXXDeleteExpr::isArrayFormAsWritten(), and clang::CXXDeleteExpr::isGlobalDelete().
CXXDependentScopeMemberExprBitfields clang::Stmt::CXXDependentScopeMemberExprBits |
Definition at line 1262 of file Stmt.h.
Referenced by clang::CXXDependentScopeMemberExpr::getOperatorLoc(), and clang::CXXDependentScopeMemberExpr::isArrow().
CXXNewExprBitfields clang::Stmt::CXXNewExprBits |
Definition at line 1255 of file Stmt.h.
Referenced by clang::CXXNewExpr::doesUsualArrayDeleteWantSize(), clang::CXXNewExpr::getInitializationStyle(), clang::CXXNewExpr::getNumPlacementArgs(), clang::CXXNewExpr::hasInitializer(), clang::CXXNewExpr::isArray(), clang::CXXNewExpr::isGlobalNew(), clang::CXXNewExpr::isParenTypeId(), and clang::CXXNewExpr::passAlignment().
CXXNoexceptExprBitfields clang::Stmt::CXXNoexceptExprBits |
Definition at line 1266 of file Stmt.h.
Referenced by clang::CXXNoexceptExpr::CXXNoexceptExpr(), and clang::CXXNoexceptExpr::getValue().
CXXNullPtrLiteralExprBitfields clang::Stmt::CXXNullPtrLiteralExprBits |
Definition at line 1249 of file Stmt.h.
Referenced by clang::CXXNullPtrLiteralExpr::CXXNullPtrLiteralExpr(), clang::CXXNullPtrLiteralExpr::getLocation(), and clang::CXXNullPtrLiteralExpr::setLocation().
CXXOperatorCallExprBitfields clang::Stmt::CXXOperatorCallExprBits |
Definition at line 1246 of file Stmt.h.
Referenced by clang::CXXOperatorCallExpr::getOperator().
CXXRewrittenBinaryOperatorBitfields clang::Stmt::CXXRewrittenBinaryOperatorBits |
Definition at line 1247 of file Stmt.h.
Referenced by clang::CXXRewrittenBinaryOperator::CXXRewrittenBinaryOperator(), and clang::CXXRewrittenBinaryOperator::isReversed().
CXXScalarValueInitExprBitfields clang::Stmt::CXXScalarValueInitExprBits |
Definition at line 1254 of file Stmt.h.
Referenced by clang::CXXScalarValueInitExpr::CXXScalarValueInitExpr(), and clang::CXXScalarValueInitExpr::getRParenLoc().
CXXThisExprBitfields clang::Stmt::CXXThisExprBits |
Definition at line 1250 of file Stmt.h.
Referenced by clang::CXXThisExpr::getLocation(), clang::CXXThisExpr::isCapturedByCopyInLambdaWithExplicitObjectParameter(), clang::CXXThisExpr::isImplicit(), clang::CXXThisExpr::setCapturedByCopyInLambdaWithExplicitObjectParameter(), clang::CXXThisExpr::setImplicit(), and clang::CXXThisExpr::setLocation().
CXXThrowExprBitfields clang::Stmt::CXXThrowExprBits |
Definition at line 1251 of file Stmt.h.
Referenced by clang::CXXThrowExpr::CXXThrowExpr(), clang::CXXThrowExpr::getThrowLoc(), and clang::CXXThrowExpr::isThrownVariableInScope().
CXXUnresolvedConstructExprBitfields clang::Stmt::CXXUnresolvedConstructExprBits |
Definition at line 1261 of file Stmt.h.
Referenced by clang::CXXUnresolvedConstructExpr::getNumArgs().
DeclRefExprBitfields clang::Stmt::DeclRefExprBits |
Definition at line 1225 of file Stmt.h.
Referenced by clang::DeclRefExpr::DeclRefExpr(), clang::DeclRefExpr::getLocation(), clang::DeclRefExpr::hadMultipleCandidates(), clang::DeclRefExpr::hasQualifier(), clang::DeclRefExpr::hasTemplateKWAndArgsInfo(), clang::DeclRefExpr::isCapturedByCopyInLambdaWithExplicitObjectParameter(), clang::DeclRefExpr::isImmediateEscalating(), clang::DeclRefExpr::isNonOdrUse(), clang::DeclRefExpr::refersToEnclosingVariableOrCapture(), clang::DeclRefExpr::setCapturedByCopyInLambdaWithExplicitObjectParameter(), clang::DeclRefExpr::setHadMultipleCandidates(), clang::DeclRefExpr::setIsImmediateEscalating(), and clang::DeclRefExpr::setLocation().
DependentScopeDeclRefExprBitfields clang::Stmt::DependentScopeDeclRefExprBits |
Definition at line 1258 of file Stmt.h.
Referenced by clang::DependentScopeDeclRefExpr::CreateEmpty().
DoStmtBitfields clang::Stmt::DoStmtBits |
Definition at line 1213 of file Stmt.h.
Referenced by clang::DoStmt::getDoLoc(), and clang::DoStmt::setDoLoc().
ExprBitfields clang::Stmt::ExprBits |
Definition at line 1222 of file Stmt.h.
Referenced by clang::Expr::Expr(), clang::Expr::getDependence(), clang::Expr::getObjectKind(), clang::Expr::getValueKind(), clang::Expr::setDependence(), clang::Expr::setObjectKind(), and clang::Expr::setValueKind().
ExprWithCleanupsBitfields clang::Stmt::ExprWithCleanupsBits |
Definition at line 1260 of file Stmt.h.
Referenced by clang::ExprWithCleanups::cleanupsHaveSideEffects(), and clang::ExprWithCleanups::getNumObjects().
FloatingLiteralBitfields clang::Stmt::FloatingLiteralBits |
Definition at line 1226 of file Stmt.h.
Referenced by clang::FloatingLiteral::getRawSemantics(), clang::FloatingLiteral::getSemantics(), clang::FloatingLiteral::isExact(), clang::FloatingLiteral::setExact(), clang::FloatingLiteral::setRawSemantics(), and clang::FloatingLiteral::setSemantics().
ForStmtBitfields clang::Stmt::ForStmtBits |
Definition at line 1214 of file Stmt.h.
Referenced by clang::ForStmt::ForStmt(), clang::ForStmt::getForLoc(), and clang::ForStmt::setForLoc().
GenericSelectionExprBitfields clang::Stmt::GenericSelectionExprBits |
Definition at line 1238 of file Stmt.h.
Referenced by clang::GenericSelectionExpr::getGenericLoc().
GotoStmtBitfields clang::Stmt::GotoStmtBits |
Definition at line 1215 of file Stmt.h.
Referenced by clang::GotoStmt::getGotoLoc(), clang::IndirectGotoStmt::getGotoLoc(), clang::GotoStmt::setGotoLoc(), and clang::IndirectGotoStmt::setGotoLoc().
IfStmtBitfields clang::Stmt::IfStmtBits |
Definition at line 1210 of file Stmt.h.
Referenced by clang::IfStmt::getIfLoc(), clang::IfStmt::getStatementKind(), clang::IfStmt::hasElseStorage(), clang::IfStmt::hasInitStorage(), clang::IfStmt::hasVarStorage(), clang::IfStmt::setIfLoc(), and clang::IfStmt::setStatementKind().
InitListExprBitfields clang::Stmt::InitListExprBits |
Definition at line 1236 of file Stmt.h.
Referenced by clang::InitListExpr::hadArrayRangeDesignator(), and clang::InitListExpr::sawArrayRangeDesignator().
LabelStmtBitfields clang::Stmt::LabelStmtBits |
Definition at line 1208 of file Stmt.h.
Referenced by clang::LabelStmt::getIdentLoc(), and clang::LabelStmt::setIdentLoc().
LambdaExprBitfields clang::Stmt::LambdaExprBits |
Definition at line 1268 of file Stmt.h.
Referenced by clang::LambdaExpr::capture_size(), clang::LambdaExpr::getCaptureDefault(), clang::LambdaExpr::hasExplicitParameters(), and clang::LambdaExpr::hasExplicitResultType().
MemberExprBitfields clang::Stmt::MemberExprBits |
Definition at line 1233 of file Stmt.h.
Referenced by clang::MemberExpr::getOperatorLoc(), clang::MemberExpr::hadMultipleCandidates(), clang::MemberExpr::hasQualifier(), clang::MemberExpr::isArrow(), clang::MemberExpr::isNonOdrUse(), clang::MemberExpr::setArrow(), and clang::MemberExpr::setHadMultipleCandidates().
NullStmtBitfields clang::Stmt::NullStmtBits |
Definition at line 1206 of file Stmt.h.
Referenced by clang::NullStmt::getSemiLoc(), clang::NullStmt::hasLeadingEmptyMacro(), clang::NullStmt::NullStmt(), and clang::NullStmt::setSemiLoc().
ObjCIndirectCopyRestoreExprBitfields clang::Stmt::ObjCIndirectCopyRestoreExprBits |
Definition at line 1275 of file Stmt.h.
Referenced by clang::ObjCIndirectCopyRestoreExpr::shouldCopy().
OpaqueValueExprBitfields clang::Stmt::OpaqueValueExprBits |
Definition at line 1278 of file Stmt.h.
Referenced by clang::OpaqueValueExpr::getLocation(), clang::OpaqueValueExpr::isUnique(), clang::OpaqueValueExpr::OpaqueValueExpr(), and clang::OpaqueValueExpr::setIsUnique().
OverloadExprBitfields clang::Stmt::OverloadExprBits |
Definition at line 1263 of file Stmt.h.
Referenced by clang::OverloadExpr::getNumDecls(), clang::OverloadExpr::hasTemplateKWAndArgsInfo(), and clang::OverloadExpr::OverloadExpr().
ParenListExprBitfields clang::Stmt::ParenListExprBits |
Definition at line 1237 of file Stmt.h.
Referenced by clang::ParenListExpr::getNumExprs().
PredefinedExprBitfields clang::Stmt::PredefinedExprBits |
Definition at line 1224 of file Stmt.h.
Referenced by clang::PredefinedExpr::getIdentKind(), clang::PredefinedExpr::getLocation(), clang::PredefinedExpr::isTransparent(), and clang::PredefinedExpr::setLocation().
PseudoObjectExprBitfields clang::Stmt::PseudoObjectExprBits |
Definition at line 1239 of file Stmt.h.
Referenced by clang::PseudoObjectExpr::getResultExpr(), and clang::PseudoObjectExpr::getResultExprIndex().
RequiresExprBitfields clang::Stmt::RequiresExprBits |
Definition at line 1269 of file Stmt.h.
Referenced by clang::RequiresExpr::getBeginLoc(), clang::RequiresExpr::getRequiresKWLoc(), clang::RequiresExpr::isSatisfied(), and clang::RequiresExpr::setSatisfied().
ReturnStmtBitfields clang::Stmt::ReturnStmtBits |
Definition at line 1218 of file Stmt.h.
Referenced by clang::ReturnStmt::getReturnLoc(), and clang::ReturnStmt::setReturnLoc().
SourceLocExprBitfields clang::Stmt::SourceLocExprBits |
Definition at line 1240 of file Stmt.h.
Referenced by clang::SourceLocExpr::getIdentKind(), and clang::SourceLocExpr::SourceLocExpr().
StmtBitfields clang::Stmt::StmtBits |
Definition at line 1205 of file Stmt.h.
Referenced by getStmtClass(), getStmtClassName(), and Stmt().
StmtExprBitfields clang::Stmt::StmtExprBits |
Definition at line 1243 of file Stmt.h.
Referenced by clang::StmtExpr::getTemplateDepth(), and clang::StmtExpr::StmtExpr().
StringLiteralBitfields clang::Stmt::StringLiteralBits |
Definition at line 1227 of file Stmt.h.
Referenced by clang::StringLiteral::getCharByteWidth(), clang::StringLiteral::getKind(), clang::StringLiteral::getNumConcatenated(), and clang::StringLiteral::isPascal().
SubstNonTypeTemplateParmExprBitfields clang::Stmt::SubstNonTypeTemplateParmExprBits |
Definition at line 1267 of file Stmt.h.
Referenced by clang::SubstNonTypeTemplateParmExpr::getNameLoc(), and clang::SubstNonTypeTemplateParmExpr::SubstNonTypeTemplateParmExpr().
SwitchCaseBitfields clang::Stmt::SwitchCaseBits |
Definition at line 1219 of file Stmt.h.
Referenced by clang::CaseStmt::caseStmtIsGNURange(), clang::SwitchCase::getKeywordLoc(), and clang::SwitchCase::setKeywordLoc().
SwitchStmtBitfields clang::Stmt::SwitchStmtBits |
Definition at line 1211 of file Stmt.h.
Referenced by clang::SwitchStmt::getSwitchLoc(), clang::SwitchStmt::hasInitStorage(), clang::SwitchStmt::hasVarStorage(), clang::SwitchStmt::isAllEnumCasesCovered(), clang::SwitchStmt::setAllEnumCasesCovered(), and clang::SwitchStmt::setSwitchLoc().
TypeTraitExprBitfields clang::Stmt::TypeTraitExprBits |
Definition at line 1257 of file Stmt.h.
Referenced by clang::TypeTraitExpr::getNumArgs(), clang::TypeTraitExpr::getTrait(), and clang::TypeTraitExpr::getValue().
UnaryExprOrTypeTraitExprBitfields clang::Stmt::UnaryExprOrTypeTraitExprBits |
Definition at line 1230 of file Stmt.h.
Referenced by clang::UnaryExprOrTypeTraitExpr::getKind(), clang::UnaryExprOrTypeTraitExpr::isArgumentType(), clang::UnaryExprOrTypeTraitExpr::setArgument(), clang::UnaryExprOrTypeTraitExpr::setKind(), and clang::UnaryExprOrTypeTraitExpr::UnaryExprOrTypeTraitExpr().
UnaryOperatorBitfields clang::Stmt::UnaryOperatorBits |
Definition at line 1229 of file Stmt.h.
Referenced by clang::UnaryOperator::canOverflow(), clang::UnaryOperator::getFPFeaturesInEffect(), clang::UnaryOperator::getFPOptionsOverride(), clang::UnaryOperator::getOpcode(), clang::UnaryOperator::getOperatorLoc(), clang::UnaryOperator::hasStoredFPFeatures(), clang::UnaryOperator::setCanOverflow(), clang::UnaryOperator::setOpcode(), clang::UnaryOperator::setOperatorLoc(), and clang::UnaryOperator::UnaryOperator().
UnresolvedLookupExprBitfields clang::Stmt::UnresolvedLookupExprBits |
Definition at line 1264 of file Stmt.h.
Referenced by clang::UnresolvedLookupExpr::requiresADL().
UnresolvedMemberExprBitfields clang::Stmt::UnresolvedMemberExprBits |
Definition at line 1265 of file Stmt.h.
Referenced by clang::UnresolvedMemberExpr::hasUnresolvedUsing(), and clang::UnresolvedMemberExpr::isArrow().
WhileStmtBitfields clang::Stmt::WhileStmtBits |
Definition at line 1212 of file Stmt.h.
Referenced by clang::WhileStmt::getWhileLoc(), clang::WhileStmt::hasVarStorage(), and clang::WhileStmt::setWhileLoc().