clang API Documentation
SourceRange - a trival tuple used to represent a source range. More...
#include <SourceLocation.h>

Public Member Functions | |
| SourceRange () | |
| SourceRange (SourceLocation loc) | |
| SourceRange (SourceLocation begin, SourceLocation end) | |
| SourceLocation | getBegin () const |
| SourceLocation | getEnd () const |
| void | setBegin (SourceLocation b) |
| void | setEnd (SourceLocation e) |
| bool | isValid () const |
| bool | isInvalid () const |
| bool | operator== (const SourceRange &X) const |
| bool | operator!= (const SourceRange &X) const |
SourceRange - a trival tuple used to represent a source range.
Definition at line 184 of file SourceLocation.h.
| clang::SourceRange::SourceRange | ( | ) | [inline] |
Definition at line 188 of file SourceLocation.h.
| clang::SourceRange::SourceRange | ( | SourceLocation | loc | ) | [inline] |
Definition at line 189 of file SourceLocation.h.
| clang::SourceRange::SourceRange | ( | SourceLocation | begin, |
| SourceLocation | end | ||
| ) | [inline] |
Definition at line 190 of file SourceLocation.h.
| SourceLocation clang::SourceRange::getBegin | ( | ) | const [inline] |
Definition at line 192 of file SourceLocation.h.
Referenced by clang::Sema::ActOnBaseSpecifier(), clang::Sema::ActOnBlockArguments(), clang::Sema::ActOnCXXMemberDeclarator(), clang::Sema::ActOnCXXNestedNameSpecifier(), clang::Sema::ActOnDependentTemplateName(), clang::Sema::ActOnExceptionDeclarator(), clang::Sema::ActOnExplicitInstantiation(), clang::Sema::ActOnFriendFunctionDecl(), clang::Sema::ActOnFriendTypeDecl(), clang::Sema::ActOnFunctionDeclarator(), clang::Sema::ActOnMemberAccessExpr(), clang::Sema::ActOnNonTypeTemplateParameter(), clang::Sema::ActOnObjCExceptionDecl(), clang::Sema::ActOnParamDeclarator(), clang::Sema::ActOnStartOfLambdaDefinition(), clang::Sema::ActOnTag(), clang::Sema::ActOnUsingDeclaration(), clang::Sema::ActOnVariableDeclarator(), clang::Sema::AddAlignedAttr(), clang::PreprocessingRecord::addPreprocessedEntity(), clang::ASTWriter::AddSourceRange(), clang::Sema::BuildAnonymousStructOrUnion(), clang::Sema::BuildArrayType(), clang::Sema::BuildBaseInitializer(), clang::Sema::BuildCallToObjectOfClassType(), clang::Sema::BuildClassMessage(), clang::Sema::BuildCXXDefaultArgExpr(), clang::Sema::BuildCXXNew(), clang::Sema::BuildDelegatingInitializer(), clang::Sema::BuildImplicitMemberExpr(), clang::Sema::BuildMemberReferenceExpr(), clang::Sema::BuildMicrosoftCAnonymousStruct(), clang::Sema::BuildOverloadedCallExpr(), clang::Sema::BuildPseudoDestructorExpr(), clang::Sema::BuildResolvedCallExpr(), CheckArrayDesignatorExpr(), clang::Sema::CheckCastAlign(), clang::Sema::CheckCompatibleReinterpretCast(), clang::Sema::CheckConvertedConstantExpression(), clang::Sema::CheckExceptionSpecCompatibility(), clang::Sema::CheckExtVectorCast(), clang::Sema::CheckFriendTypeDecl(), clang::Sema::CheckMessageArgumentTypes(), clang::Sema::CheckObjCARCConversion(), clang::Sema::CheckSpecifiedExceptionType(), CheckStringInit(), clang::Sema::CheckTemplateArgument(), CheckTemplateArgumentAddressOfObjectOrFunction(), clang::Sema::CheckTemplateArgumentPointerToMember(), clang::Sema::CheckTemplateTypeArgument(), clang::Sema::CheckUsingDeclQualifier(), clang::Sema::CheckVectorCast(), clang::arcmt::CapturedDiagList::clearDiagnostic(), clang::Sema::ConvertArgumentsForCall(), ConvertDeclSpecToType(), clang::InitializationKind::CreateCast(), clang::InitializationKind::CreateCStyleCast(), clang::InitializationKind::CreateFunctionalCast(), CreateNewFunctionDecl(), clang::InitializationSequence::Diagnose(), DiagnoseAccessPath(), clang::Sema::DiagnoseAssignmentAsCondition(), diagnoseBadCast(), clang::Sema::DiagnoseEqualityWithExtraParens(), DiagnoseInstanceReference(), clang::Sema::DiagnoseMultipleUserDefinedConversion(), clang::Sema::DiagnoseNontrivial(), diagnoseObjCARCConversion(), clang::Sema::DiagnoseUnexpandedParameterPack(), clang::Sema::DiagnoseUnknownTypeName(), clang::CodeGen::CodeGenFunction::EmitCXXForRangeStmt(), clang::CodeGen::CodeGenFunction::EmitForStmt(), clang::CodeGen::CodeGenFunction::EmitObjCForCollectionStmt(), clang::CXXScopeSpec::Extend(), clang::Declarator::ExtendWithDeclSpec(), clang::ASTReader::findPreprocessedEntitiesInRange(), clang::Sema::GatherArgumentsForCall(), GCRewriteFinalize(), clang::CodeGen::CodeGenFunction::GenerateCode(), clang::CharSourceRange::getBegin(), clang::CXXScopeSpec::getBeginLoc(), clang::TypeLoc::getBeginLoc(), clang::NestedNameSpecifierLoc::getBeginLoc(), clang::NonTypeTemplateParmDecl::getDefaultArgumentLoc(), GetFullTypeForDeclarator(), clang::DependentFunctionTemplateSpecializationInfo::getLAngleLoc(), clang::AttributeList::getLoc(), clang::NestedNameSpecifierLoc::getLocalBeginLoc(), clang::TemplateArgumentLoc::getLocation(), clang::Stmt::getLocStart(), clang::Decl::getLocStart(), clang::Rewriter::getRewrittenText(), clang::NestedNameSpecifierLoc::getSourceRange(), clang::LambdaExpr::getSourceRange(), clang::CXXDependentScopeMemberExpr::getSourceRange(), clang::UnresolvedMemberExpr::getSourceRange(), clang::Sema::HandleDeclarator(), clang::Sema::HandleField(), clang::arcmt::CapturedDiagList::hasDiagnostic(), clang::html::HighlightRange(), clang::ASTImporter::Import(), isPreprocessedEntityIfInFileID(), IsStructurallyEquivalent(), clang::Sema::isTemplateName(), clang::CodeGen::CodeGenFunction::LexicalScope::LexicalScope(), clang::Sema::LookupMemberExpr(), clang::NestedNameSpecifierLocBuilder::MakeTrivial(), clang::ASTUnit::mapRangeFromPreamble(), clang::ASTUnit::mapRangeToPreamble(), maybeSynthesizeBlockSignature(), clang::Sema::ParsedFreeStandingDeclSpec(), clang::Sema::ParseTypedefDecl(), clang::InitializationSequence::Perform(), clang::Sema::PerformContextuallyConvertToBool(), clang::Sema::PerformImplicitConversion(), clang::Sema::PerformObjectArgumentInitialization(), clang::Sema::PerformObjectMemberConversion(), clang::idx::ASTLocation::print(), clang::PseudoDestructorTypeStorage::PseudoDestructorTypeStorage(), clang::ASTReader::ReadNestedNameSpecifierLoc(), clang::TreeTransform< Derived >::RebuildArrayType(), clang::TreeTransform< Derived >::RebuildCXXNoexceptExpr(), clang::Sema::RebuildNestedNameSpecifierInCurrentInstantiation(), clang::Rewriter::RemoveText(), clang::Rewriter::ReplaceText(), clang::Sema::RequireCompleteDeclContext(), clang::Sema::ResolveAndFixSingleFunctionTemplateSpecialization(), SearchForReturnInStmt(), clang::Token::setAnnotationRange(), clang::IfStmt::setConditionVariable(), clang::SwitchStmt::setConditionVariable(), clang::WhileStmt::setConditionVariable(), clang::ForStmt::setConditionVariable(), clang::DeclarationNameInfo::setCXXOperatorNameRange(), clang::CXXScopeSpec::SetInvalid(), clang::TypeofLikeTypeLoc< TypeOfTypeLoc, TypeOfType, TypeOfTypeLocInfo >::setParensRange(), clang::UnaryTransformTypeLoc::setParensRange(), clang::AtomicTypeLoc::setParensRange(), clang::ObjCMessageExpr::setSourceRange(), SuggestParentheses(), clang::TreeTransform< Derived >::TransformCXXNamedCastExpr(), tryDiagnoseOverloadedCast(), TryReinterpretCast(), TryStaticDowncast(), TryStaticImplicitCast(), TryStaticMemberPointerUpcast(), clang::ConversionFixItGenerator::tryToFixConversion(), and clang::Sema::VerifyIntegerConstantExpression().
| SourceLocation clang::SourceRange::getEnd | ( | ) | const [inline] |
Definition at line 193 of file SourceLocation.h.
Referenced by clang::Sema::ActOnFunctionDeclarator(), clang::Sema::ActOnStartOfLambdaDefinition(), clang::ASTWriter::AddNestedNameSpecifierLoc(), clang::ASTWriter::AddSourceRange(), clang::Sema::BuildCompoundLiteralExpr(), clang::Sema::BuildCXXNamedCast(), clang::Sema::BuildCXXNew(), clang::Sema::CheckFriendTypeDecl(), clang::Sema::CheckPureMethod(), clang::arcmt::CapturedDiagList::clearDiagnostic(), ConvertDeducedTemplateArgument(), clang::InitializationKind::CreateCast(), clang::InitializationKind::CreateCStyleCast(), clang::InitializationKind::CreateFunctionalCast(), clang::Sema::CreateUnaryExprOrTypeTraitExpr(), clang::Sema::DiagnoseAssignmentAsCondition(), clang::Sema::DiagnoseEqualityWithExtraParens(), DiagnoseInvalidRedeclaration(), clang::CodeGen::CodeGenFunction::EmitCXXForRangeStmt(), clang::CodeGen::CodeGenFunction::EmitForStmt(), clang::CodeGen::CodeGenFunction::EmitObjCForCollectionStmt(), clang::Declarator::ExtendWithDeclSpec(), clang::ASTReader::findPreprocessedEntitiesInRange(), clang::Sema::FinishTemplateArgumentDeduction(), clang::CodeGen::CodeGenFunction::LexicalScope::ForceCleanup(), GCRewriteFinalize(), clang::CodeGen::CodeGenFunction::GenerateCode(), clang::Decl::getBodyRBrace(), clang::CharSourceRange::getEnd(), clang::CXXScopeSpec::getEndLoc(), clang::TypeLoc::getEndLoc(), clang::NestedNameSpecifierLoc::getEndLoc(), clang::NestedNameSpecifierLoc::getLocalEndLoc(), clang::Stmt::getLocEnd(), clang::Decl::getLocEnd(), clang::DependentFunctionTemplateSpecializationInfo::getRAngleLoc(), clang::Rewriter::getRewrittenText(), clang::TemplateDecl::getSourceRange(), clang::NestedNameSpecifierLoc::getSourceRange(), clang::CXXConstructExpr::getSourceRange(), clang::CXXTemporaryObjectExpr::getSourceRange(), clang::TemplateTemplateParmDecl::getSourceRange(), clang::ParmVarDecl::getSourceRange(), clang::arcmt::CapturedDiagList::hasDiagnostic(), clang::html::HighlightRange(), clang::ASTImporter::Import(), LookupMemberExprInRecord(), clang::NestedNameSpecifierLocBuilder::MakeTrivial(), clang::ASTUnit::mapRangeFromPreamble(), clang::ASTUnit::mapRangeToPreamble(), clang::InitializationSequence::Perform(), clang::idx::ASTLocation::print(), clang::ASTReader::ReadNestedNameSpecifierLoc(), clang::TreeTransform< Derived >::RebuildCXXNoexceptExpr(), clang::Rewriter::ReplaceText(), clang::Token::setAnnotationRange(), clang::IfStmt::setConditionVariable(), clang::SwitchStmt::setConditionVariable(), clang::WhileStmt::setConditionVariable(), clang::ForStmt::setConditionVariable(), clang::DeclarationNameInfo::setCXXOperatorNameRange(), clang::CXXScopeSpec::SetInvalid(), clang::TypeofLikeTypeLoc< TypeOfTypeLoc, TypeOfType, TypeOfTypeLocInfo >::setParensRange(), clang::UnaryTransformTypeLoc::setParensRange(), clang::AtomicTypeLoc::setParensRange(), clang::ObjCMessageExpr::setSourceRange(), SuggestParentheses(), clang::TreeTransform< Derived >::TransformCXXNamedCastExpr(), clang::ConversionFixItGenerator::tryToFixConversion(), clang::Sema::tryToRecoverWithCall(), and clang::CodeGen::CodeGenFunction::LexicalScope::~LexicalScope().
| bool clang::SourceRange::isInvalid | ( | ) | const [inline] |
Definition at line 199 of file SourceLocation.h.
References isValid().
Referenced by clang::arcmt::CapturedDiagList::clearDiagnostic(), clang::ASTReader::findPreprocessedEntitiesInRange(), clang::PreprocessingRecord::getPreprocessedEntitiesInRange(), clang::arcmt::CapturedDiagList::hasDiagnostic(), and clang::Rewriter::ReplaceText().
| bool clang::SourceRange::isValid | ( | ) | const [inline] |
Definition at line 198 of file SourceLocation.h.
References clang::SourceLocation::isValid().
Referenced by clang::Sema::ActOnAtEnd(), clang::Sema::ActOnCXXNestedNameSpecifier(), clang::ento::BugReport::addRange(), clang::ento::PathDiagnosticPiece::addRange(), clang::Sema::BuildCXXNew(), clang::Sema::BuildImplicitMemberExpr(), clang::Sema::BuildMemberReferenceExpr(), clang::Sema::CheckObjCARCConversion(), diagnoseObjCARCConversion(), clang::CXXConstructExpr::getSourceRange(), clang::ParmVarDecl::getSourceRange(), clang::CXXScopeSpec::isEmpty(), isInvalid(), clang::CXXNewExpr::isParenTypeId(), clang::CharSourceRange::isValid(), clang::ento::PathDiagnosticLocation::PathDiagnosticLocation(), and clang::CXXScopeSpec::SetInvalid().
| bool clang::SourceRange::operator!= | ( | const SourceRange & | X | ) | const [inline] |
Definition at line 205 of file SourceLocation.h.
| bool clang::SourceRange::operator== | ( | const SourceRange & | X | ) | const [inline] |
Definition at line 201 of file SourceLocation.h.
| void clang::SourceRange::setBegin | ( | SourceLocation | b | ) | [inline] |
Definition at line 195 of file SourceLocation.h.
Referenced by clang::Sema::ActOnCXXNestedNameSpecifier(), clang::Sema::ActOnPackExpansion(), clang::InitializationSequence::Diagnose(), DiagnoseInstanceReference(), clang::CXXScopeSpec::Extend(), clang::Declarator::ExtendWithDeclSpec(), FixDigraph(), clang::DeclRefExpr::getSourceRange(), clang::UnresolvedLookupExpr::getSourceRange(), clang::CXXDependentScopeMemberExpr::getSourceRange(), clang::UnresolvedMemberExpr::getSourceRange(), clang::CharSourceRange::setBegin(), clang::CXXScopeSpec::setBeginLoc(), clang::CXXScopeSpec::SetInvalid(), clang::Declarator::SetRangeBegin(), and clang::DeclSpec::SetRangeStart().
| void clang::SourceRange::setEnd | ( | SourceLocation | e | ) | [inline] |
Definition at line 196 of file SourceLocation.h.
Referenced by clang::CXXScopeSpec::Extend(), clang::Declarator::ExtendWithDeclSpec(), FixDigraph(), clang::AttributedTypeLoc::getLocalSourceRange(), clang::DeclRefExpr::getSourceRange(), clang::UnresolvedLookupExpr::getSourceRange(), clang::DependentScopeDeclRefExpr::getSourceRange(), clang::CXXDependentScopeMemberExpr::getSourceRange(), clang::UnresolvedMemberExpr::getSourceRange(), clang::CharSourceRange::setEnd(), clang::CXXScopeSpec::setEndLoc(), clang::CXXScopeSpec::SetInvalid(), clang::DeclSpec::SetRangeEnd(), and clang::Declarator::SetRangeEnd().