Lines Matching refs:Clang

1042   std::unique_ptr<CompilerInstance> Clang(  in Parse()  local
1047 CICleanup(Clang.get()); in Parse()
1052 Clang->setInvocation(CCInvocation.get()); in Parse()
1053 OriginalSourceFile = Clang->getFrontendOpts().Inputs[0].getFile(); in Parse()
1057 Clang->setDiagnostics(&getDiagnostics()); in Parse()
1060 Clang->setTarget(TargetInfo::CreateTargetInfo( in Parse()
1061 Clang->getDiagnostics(), Clang->getInvocation().TargetOpts)); in Parse()
1062 if (!Clang->hasTarget()) in Parse()
1069 Clang->getTarget().adjust(Clang->getLangOpts()); in Parse()
1071 assert(Clang->getFrontendOpts().Inputs.size() == 1 && in Parse()
1073 assert(Clang->getFrontendOpts().Inputs[0].getKind() != IK_AST && in Parse()
1075 assert(Clang->getFrontendOpts().Inputs[0].getKind() != IK_LLVM_IR && in Parse()
1079 LangOpts = Clang->getInvocation().LangOpts; in Parse()
1080 FileSystemOpts = Clang->getFileSystemOpts(); in Parse()
1082 Clang->createFileManager(); in Parse()
1083 FileMgr = &Clang->getFileManager(); in Parse()
1103 Clang->setFileManager(&getFileManager()); in Parse()
1106 Clang->setSourceManager(&getSourceManager()); in Parse()
1110 PreprocessorOptions &PreprocessorOpts = Clang->getPreprocessorOpts(); in Parse()
1138 if (!Act->BeginSourceFile(*Clang.get(), Clang->getFrontendOpts().Inputs[0])) in Parse()
1150 transferASTDataFromCompilerInstance(*Clang); in Parse()
1164 transferASTDataFromCompilerInstance(*Clang); in Parse()
1508 std::unique_ptr<CompilerInstance> Clang( in getMainBufferWithPrecompiledPreamble() local
1513 CICleanup(Clang.get()); in getMainBufferWithPrecompiledPreamble()
1515 Clang->setInvocation(&*PreambleInvocation); in getMainBufferWithPrecompiledPreamble()
1516 OriginalSourceFile = Clang->getFrontendOpts().Inputs[0].getFile(); in getMainBufferWithPrecompiledPreamble()
1519 Clang->setDiagnostics(&getDiagnostics()); in getMainBufferWithPrecompiledPreamble()
1522 Clang->setTarget(TargetInfo::CreateTargetInfo( in getMainBufferWithPrecompiledPreamble()
1523 Clang->getDiagnostics(), Clang->getInvocation().TargetOpts)); in getMainBufferWithPrecompiledPreamble()
1524 if (!Clang->hasTarget()) { in getMainBufferWithPrecompiledPreamble()
1536 Clang->getTarget().adjust(Clang->getLangOpts()); in getMainBufferWithPrecompiledPreamble()
1538 assert(Clang->getFrontendOpts().Inputs.size() == 1 && in getMainBufferWithPrecompiledPreamble()
1540 assert(Clang->getFrontendOpts().Inputs[0].getKind() != IK_AST && in getMainBufferWithPrecompiledPreamble()
1542 assert(Clang->getFrontendOpts().Inputs[0].getKind() != IK_LLVM_IR && in getMainBufferWithPrecompiledPreamble()
1547 ProcessWarningOptions(getDiagnostics(), Clang->getDiagnosticOpts()); in getMainBufferWithPrecompiledPreamble()
1554 createVFSFromCompilerInvocation(Clang->getInvocation(), getDiagnostics()); in getMainBufferWithPrecompiledPreamble()
1559 Clang->setFileManager(new FileManager(Clang->getFileSystemOpts(), VFS)); in getMainBufferWithPrecompiledPreamble()
1562 Clang->setSourceManager(new SourceManager(getDiagnostics(), in getMainBufferWithPrecompiledPreamble()
1563 Clang->getFileManager())); in getMainBufferWithPrecompiledPreamble()
1566 Clang->addDependencyCollector(PreambleDepCollector); in getMainBufferWithPrecompiledPreamble()
1570 if (!Act->BeginSourceFile(*Clang.get(), Clang->getFrontendOpts().Inputs[0])) { in getMainBufferWithPrecompiledPreamble()
1586 makeStandaloneDiagnostic(Clang->getLangOpts(), *I)); in getMainBufferWithPrecompiledPreamble()
1611 SourceManager &SourceMgr = Clang->getSourceManager(); in getMainBufferWithPrecompiledPreamble()
1613 const FileEntry *File = Clang->getFileManager().getFile(Filename); in getMainBufferWithPrecompiledPreamble()
1770 std::unique_ptr<CompilerInstance> Clang( in LoadFromCompilerInvocationAction() local
1775 CICleanup(Clang.get()); in LoadFromCompilerInvocationAction()
1777 Clang->setInvocation(CI); in LoadFromCompilerInvocationAction()
1778 AST->OriginalSourceFile = Clang->getFrontendOpts().Inputs[0].getFile(); in LoadFromCompilerInvocationAction()
1782 Clang->setDiagnostics(&AST->getDiagnostics()); in LoadFromCompilerInvocationAction()
1785 Clang->setTarget(TargetInfo::CreateTargetInfo( in LoadFromCompilerInvocationAction()
1786 Clang->getDiagnostics(), Clang->getInvocation().TargetOpts)); in LoadFromCompilerInvocationAction()
1787 if (!Clang->hasTarget()) in LoadFromCompilerInvocationAction()
1794 Clang->getTarget().adjust(Clang->getLangOpts()); in LoadFromCompilerInvocationAction()
1796 assert(Clang->getFrontendOpts().Inputs.size() == 1 && in LoadFromCompilerInvocationAction()
1798 assert(Clang->getFrontendOpts().Inputs[0].getKind() != IK_AST && in LoadFromCompilerInvocationAction()
1800 assert(Clang->getFrontendOpts().Inputs[0].getKind() != IK_LLVM_IR && in LoadFromCompilerInvocationAction()
1810 Clang->setFileManager(&AST->getFileManager()); in LoadFromCompilerInvocationAction()
1813 Clang->setSourceManager(&AST->getSourceManager()); in LoadFromCompilerInvocationAction()
1827 if (!Act->BeginSourceFile(*Clang.get(), Clang->getFrontendOpts().Inputs[0])) { in LoadFromCompilerInvocationAction()
1828 AST->transferASTDataFromCompilerInstance(*Clang); in LoadFromCompilerInvocationAction()
1836 Clang->getPreprocessor().addPPCallbacks( in LoadFromCompilerInvocationAction()
1840 if (Clang->hasASTConsumer()) in LoadFromCompilerInvocationAction()
1841 Consumers.push_back(Clang->takeASTConsumer()); in LoadFromCompilerInvocationAction()
1844 Clang->setASTConsumer( in LoadFromCompilerInvocationAction()
1848 AST->transferASTDataFromCompilerInstance(*Clang); in LoadFromCompilerInvocationAction()
1856 AST->transferASTDataFromCompilerInstance(*Clang); in LoadFromCompilerInvocationAction()
2350 std::unique_ptr<CompilerInstance> Clang( in CodeComplete() local
2355 CICleanup(Clang.get()); in CodeComplete()
2357 Clang->setInvocation(&*CCInvocation); in CodeComplete()
2358 OriginalSourceFile = Clang->getFrontendOpts().Inputs[0].getFile(); in CodeComplete()
2361 Clang->setDiagnostics(&Diag); in CodeComplete()
2363 Clang->getDiagnostics(), in CodeComplete()
2368 Clang->setTarget(TargetInfo::CreateTargetInfo( in CodeComplete()
2369 Clang->getDiagnostics(), Clang->getInvocation().TargetOpts)); in CodeComplete()
2370 if (!Clang->hasTarget()) { in CodeComplete()
2371 Clang->setInvocation(nullptr); in CodeComplete()
2379 Clang->getTarget().adjust(Clang->getLangOpts()); in CodeComplete()
2381 assert(Clang->getFrontendOpts().Inputs.size() == 1 && in CodeComplete()
2383 assert(Clang->getFrontendOpts().Inputs[0].getKind() != IK_AST && in CodeComplete()
2385 assert(Clang->getFrontendOpts().Inputs[0].getKind() != IK_LLVM_IR && in CodeComplete()
2390 Clang->setFileManager(&FileMgr); in CodeComplete()
2391 Clang->setSourceManager(&SourceMgr); in CodeComplete()
2405 Clang->setCodeCompletionConsumer(AugmentedConsumer); in CodeComplete()
2445 if (!Clang->getLangOpts().Modules) in CodeComplete()
2450 if (Act->BeginSourceFile(*Clang.get(), Clang->getFrontendOpts().Inputs[0])) { in CodeComplete()