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);
123 clang::QualType mAllocationType;
124 clang::QualType mScriptCallType;
126 std::set<const clang::FunctionDecl *> mUsedByReducePragmaFns;
130 std::vector<clang::VarDecl *> mUsedByReducePragmaDummyVars;
133 RSContext(clang::Preprocessor &PP,
134 clang::ASTContext &Ctx,
135 const clang::TargetInfo &Target,
144 inline clang::Preprocessor &getPreprocessor() const { return mPP; }
145 inline clang::ASTContext &getASTContext() const { return mCtx; }
146 inline clang::MangleContext &getMangleContext() const {
151 inline const clang::SourceManager *getSourceManager() const {
154 inline clang::DiagnosticsEngine *getDiagnostics() const {
190 void setAllocationType(const clang::TypeDecl* TD);
191 inline const clang::QualType& getAllocationType() const {
195 void setScriptCallType(const clang::TypeDecl* TD);
196 inline const clang::QualType& getScriptCallType() const {
200 bool addForEach(const clang::FunctionDecl* FD);
242 int getForEachSlotNumber(const clang::FunctionDecl* FD);
256 void markUsedByReducePragma(clang::FunctionDecl *FD, CheckName Check);
317 clang::DiagnosticBuilder Report(clang::DiagnosticsEngine::Level Level,
319 clang::DiagnosticsEngine *DiagEngine = getDiagnostics();
324 clang::DiagnosticBuilder Report(clang::DiagnosticsEngine::Level Level,
325 const clang::SourceLocation Loc,
327 clang::DiagnosticsEngine *DiagEngine = getDiagnostics();
328 const clang::SourceManager *SM = getSourceManager();
329 return DiagEngine->Report(clang::FullSourceLoc(Loc, *SM),
336 clang::DiagnosticBuilder ReportError(const char (&Message)[N]) {
337 return Report<N>(clang::DiagnosticsEngine::Error, Message);
341 clang::DiagnosticBuilder ReportError(const clang::SourceLocation Loc,
343 return Report<N>(clang::DiagnosticsEngine::Error, Loc, Message);
347 clang::DiagnosticBuilder ReportWarning(const char (&Message)[N]) {
348 return Report<N>(clang::DiagnosticsEngine::Warning, Message);
352 clang::DiagnosticBuilder ReportWarning(const clang::SourceLocation Loc,
354 return Report<N>(clang::DiagnosticsEngine::Warning, Loc, Message);