Lines Matching defs:Sema

1 //===--- Sema.cpp - AST Builder and Semantic Analysis Implementation ------===//
15 #include "clang/Sema/SemaInternal.h"
30 #include "clang/Sema/CXXFieldCollector.h"
31 #include "clang/Sema/DelayedDiagnostic.h"
32 #include "clang/Sema/ExternalSemaSource.h"
33 #include "clang/Sema/MultiplexExternalSemaSource.h"
34 #include "clang/Sema/ObjCMethodList.h"
35 #include "clang/Sema/PrettyDeclStackTrace.h"
36 #include "clang/Sema/Scope.h"
37 #include "clang/Sema/ScopeInfo.h"
38 #include "clang/Sema/SemaConsumer.h"
39 #include "clang/Sema/TemplateDeduction.h"
47 PrintingPolicy Sema::getPrintingPolicy(const ASTContext &Context,
63 void Sema::ActOnTranslationUnitScope(Scope *S) {
70 Sema::Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer,
118 void Sema::Initialize() {
119 // Tell the AST consumer about this Sema object.
126 // Tell the external Sema source about this Sema object.
175 Sema::~Sema() {
190 // Detach from the external Sema source.
195 // If Sema's ExternalSource is the multiplexer - we own it.
204 bool Sema::makeUnavailableInSystemHeader(SourceLocation loc,
225 ASTMutationListener *Sema::getASTMutationListener() const {
234 void Sema::addExternalSource(ExternalSemaSource *E) {
251 void Sema::PrintStats() const {
262 ExprResult Sema::ImpCastExprToType(Expr *E, QualType Ty,
312 CastKind Sema::ScalarTypeToBooleanCastKind(QualType ScalarTy) {
327 /// \brief Used to prune the decls of Sema's UnusedFileScopedDecls vector.
328 static bool ShouldRemoveFromUnused(Sema *SemaRef, const DeclaratorDecl *D) {
386 void Sema::getUndefinedButUsed(
423 static void checkUndefinedButUsed(Sema &S) {
448 void Sema::LoadExternalWeakUndeclaredIdentifiers() {
542 void Sema::ActOnEndOfTranslationUnit() {
789 DeclContext *Sema::getFunctionLevelDeclContext() {
809 FunctionDecl *Sema::getCurFunctionDecl() {
814 ObjCMethodDecl *Sema::getCurMethodDecl() {
821 NamedDecl *Sema::getCurFunctionOrMethodDecl() {
828 void Sema::EmitCurrentDiagnostic(unsigned DiagID) {
888 // The last diagnostic which Sema produced was ignored. Suppress any
930 Sema::SemaDiagnosticBuilder
931 Sema::Diag(SourceLocation Loc, const PartialDiagnostic& PD) {
942 bool Sema::findMacroSpelling(SourceLocation &locref, StringRef name) {
970 Scope *Sema::getScopeForContext(DeclContext *Ctx) {
989 void Sema::PushFunctionScope() {
1001 void Sema::PushBlockScope(Scope *BlockScope, BlockDecl *Block) {
1006 void Sema::PushLambdaScope(CXXRecordDecl *Lambda,
1012 void Sema::PopFunctionScopeInfo(const AnalysisBasedWarnings::Policy *WP,
1035 void Sema::PushCompoundScope() {
1039 void Sema::PopCompoundScope() {
1048 bool Sema::hasAnyUnrecoverableErrorsInThisFunction() const {
1052 BlockScopeInfo *Sema::getCurBlock() {
1059 LambdaScopeInfo *Sema::getCurLambda() {
1066 void Sema::ActOnComment(SourceRange Comment) {
1135 bool Sema::tryExprAsCall(Expr &E, QualType &ZeroArgCallReturnTy,
1238 static void noteOverloads(Sema &S, const UnresolvedSetImpl &Overloads,
1261 static void notePlausibleOverloads(Sema &S, SourceLocation Loc,
1290 bool Sema::tryToRecoverWithCall(ExprResult &E, const PartialDiagnostic &PD,
1329 IdentifierInfo *Sema::getSuperIdentifier() const {
1335 IdentifierInfo *Sema::getFloat128Identifier() const {
1341 void Sema::PushCapturedRegionScope(Scope *S, CapturedDecl *CD, RecordDecl *RD,
1349 CapturedRegionScopeInfo *Sema::getCurCapturedRegion() {