Exemple #1
0
 void Interpreter::DumpIncludePath() {
   llvm::SmallVector<std::string, 100> IncPaths;
   GetIncludePaths(IncPaths, true /*withSystem*/, true /*withFlags*/);
   // print'em all
   for (unsigned i = 0; i < IncPaths.size(); ++i) {
     llvm::errs() << IncPaths[i] <<"\n";
   }
 }
void CodeCompletionPage::Save()
{
    if(m_type == TypeWorkspace) {
        size_t flags = 0;
        LocalWorkspaceST::Get()->SetParserPaths(GetIncludePaths(), wxArrayString());
        LocalWorkspaceST::Get()->SetParserMacros(GetMacros());

        if ( m_checkBoxCpp11->IsChecked() ) flags |= LocalWorkspace::EnableCpp11;
        if ( m_checkBoxCpp14->IsChecked() ) flags |= LocalWorkspace::EnableCpp14;
        LocalWorkspaceST::Get()->SetParserFlags( flags );
        LocalWorkspaceST::Get()->Flush();

#if HAS_LIBCLANG
        if(m_ccChanged) {
            ClangCodeCompletion::Instance()->ClearCache();
            m_ccChanged = false;
        }
#endif
    }
}