示例#1
0
void cling::addClingPragmas(Interpreter& interp) {
  Preprocessor& PP = interp.getCI()->getPreprocessor();
  // PragmaNamespace / PP takes ownership of sub-handlers.
  PP.AddPragmaHandler("cling", new PHLoad(interp));
  PP.AddPragmaHandler("cling", new PHAddIncPath(interp));
  PP.AddPragmaHandler("cling", new PHAddLibraryPath(interp));
}
 PointerCheckInjector(Interpreter& I)
   : m_Interp(I), m_Sema(I.getCI()->getSema()),
     m_Context(I.getCI()->getASTContext()),
     m_clingthrowIfInvalidPointerCache(0) {}