Add pragma rs set_reflect_license
Change-Id: I9c3d9505c108a11b6c3fd85499fbac10da9f2532
diff --git a/slang_rs_context.hpp b/slang_rs_context.hpp
index 7f52a70..a6760fd 100644
--- a/slang_rs_context.hpp
+++ b/slang_rs_context.hpp
@@ -61,6 +61,7 @@
RSPragmaHandler* mRSExportFuncAllPragma;
RSPragmaHandler* mRSExportTypePragma;
RSPragmaHandler* mRSJavaPackageNamePragma;
+ RSPragmaHandler* mRSReflectLicensePragma;
/* Remember the variables/types/elements annotated in #pragma to be exported */
NeedExportVarSet mNeedExportVars;
@@ -69,6 +70,7 @@
bool mExportAllStaticVars;
bool mExportAllStaticFuncs;
+ std::string* mLicenseNote;
std::string mReflectJavaPackageName;
bool processExportVar(const VarDecl* VD);
@@ -88,6 +90,9 @@
inline llvm::LLVMContext& getLLVMContext() const { return mLLVMContext; }
inline const SourceManager* getSourceManager() const { return &mPP->getSourceManager(); }
+ inline void setLicenseNote(const std::string& S) { mLicenseNote = new std::string(S); }
+ inline const std::string* getLicenseNote() const { return mLicenseNote; }
+
inline void addExportVar(const std::string& S) { mNeedExportVars.insert(S); return; }
inline void addExportFunc(const std::string& S) { mNeedExportFuncs.insert(S); return; }
inline void addExportType(const std::string& S) { mNeedExportTypes.insert(S); return; }