Lines Matching defs:clang

28 #include "clang/Lex/Preprocessor.h"
29 #include "clang/AST/Mangle.h"
41 namespace clang {
50 } // namespace clang
79 clang::Preprocessor &mPP;
80 clang::ASTContext &mCtx;
103 std::unique_ptr<clang::MangleContext> mMangleCtx;
107 bool processExportVar(const clang::VarDecl *VD);
108 bool processExportFunc(const clang::FunctionDecl *FD);
111 int getForEachSlotNumber(const clang::StringRef& funcName);
128 clang::QualType mAllocationType;
129 clang::QualType mScriptCallType;
131 std::set<const clang::FunctionDecl *> mUsedByReducePragmaFns;
135 std::vector<clang::VarDecl *> mUsedByReducePragmaDummyVars;
138 RSContext(clang::Preprocessor &PP,
139 clang::ASTContext &Ctx,
140 const clang::TargetInfo &Target,
149 inline clang::Preprocessor &getPreprocessor() const { return mPP; }
150 inline clang::ASTContext &getASTContext() const { return mCtx; }
151 inline clang::MangleContext &getMangleContext() const {
156 inline const clang::SourceManager *getSourceManager() const {
159 inline clang::DiagnosticsEngine *getDiagnostics() const {
195 void setAllocationType(const clang::TypeDecl* TD);
196 inline const clang::QualType& getAllocationType() const {
200 void setScriptCallType(const clang::TypeDecl* TD);
201 inline const clang::QualType& getScriptCallType() const {
205 bool addForEach(const clang::FunctionDecl* FD);
254 int getForEachSlotNumber(const clang::FunctionDecl* FD);
275 void markUsedByReducePragma(clang::FunctionDecl *FD, CheckName Check);
336 clang::DiagnosticBuilder Report(clang::DiagnosticsEngine::Level Level,
338 clang::DiagnosticsEngine *DiagEngine = getDiagnostics();
343 clang::DiagnosticBuilder Report(clang::DiagnosticsEngine::Level Level,
344 const clang::SourceLocation Loc,
346 clang::DiagnosticsEngine *DiagEngine = getDiagnostics();
347 const clang::SourceManager *SM = getSourceManager();
348 return DiagEngine->Report(clang::FullSourceLoc(Loc, *SM),
355 clang::DiagnosticBuilder ReportError(const char (&Message)[N]) const {
356 return Report<N>(clang::DiagnosticsEngine::Error, Message);
360 clang::DiagnosticBuilder ReportError(const clang::SourceLocation Loc,
362 return Report<N>(clang::DiagnosticsEngine::Error, Loc, Message);
366 clang::DiagnosticBuilder ReportWarning(const char (&Message)[N]) const {
367 return Report<N>(clang::DiagnosticsEngine::Warning, Message);
371 clang::DiagnosticBuilder ReportWarning(const clang::SourceLocation Loc,
373 return Report<N>(clang::DiagnosticsEngine::Warning, Loc, Message);