reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/Support/VirtualFileSystem.h
  399   FileSystem &getUnderlyingFS() { return *FS; }
lib/Support/VirtualFileSystem.cpp
 1099       /*IterateExternalFS=*/shouldUseExternalFS(), *ExternalFS, EC));
tools/clang/examples/clang-interpreter/main.cpp
  125     new TextDiagnosticPrinter(llvm::errs(), &*DiagOpts);
  128   DiagnosticsEngine Diags(DiagID, &*DiagOpts, DiagClient);
tools/clang/include/clang/Basic/Diagnostic.h
  500   DiagnosticOptions &getDiagnosticOptions() const { return *DiagOpts; }
tools/clang/include/clang/Basic/FileManager.h
  355   llvm::vfs::FileSystem &getVirtualFileSystem() const { return *FS; }
tools/clang/include/clang/Driver/Driver.h
  307   llvm::vfs::FileSystem &getVFS() const { return *VFS; }
tools/clang/include/clang/Frontend/ASTUnit.h
  429   const DiagnosticsEngine &getDiagnostics() const { return *Diagnostics; }
  430   DiagnosticsEngine &getDiagnostics() { return *Diagnostics; }
  432   const SourceManager &getSourceManager() const { return *SourceMgr; }
  433   SourceManager &getSourceManager() { return *SourceMgr; }
  439   const ASTContext &getASTContext() const { return *Ctx; }
  440   ASTContext &getASTContext() { return *Ctx; }
  476   const FileManager &getFileManager() const { return *FileMgr; }
  477   FileManager &getFileManager() { return *FileMgr; }
tools/clang/include/clang/Frontend/CompilerInstance.h
  343     return *Diagnostics;
  378     return *Target;
  410     return *FileMgr;
  430     return *SourceMgr;
  470     return *Context;
  817   InMemoryModuleCache &getModuleCache() const { return *ModuleCache; }
tools/clang/include/clang/Frontend/CompilerInvocation.h
   93   DiagnosticOptions &getDiagnosticOpts() const { return *DiagnosticOpts; }
tools/clang/include/clang/Serialization/ModuleManager.h
  320   InMemoryModuleCache &getModuleCache() const { return *ModuleCache; }
tools/clang/include/clang/Tooling/Tooling.h
  371   FileManager &getFiles() { return *Files; }
tools/clang/lib/ARCMigrate/ARCMT.cpp
  187         PPOpts.ImplicitPCHInclude, FileMgr, PCHContainerRdr, *Diags);
  228   arcDiags.reportDiagnostics(*Diags);
  267   CaptureDiagnosticConsumer errRec(*Diags, *DiagClient, capturedDiags);
  285     capturedDiags.reportDiagnostics(*Diags);
  314   TransformActions testAct(*Diags, capturedDiags, Ctx, Unit->getPreprocessor());
  325   capturedDiags.reportDiagnostics(*Diags);
  377     return migration.getRemapper().overwriteOriginal(*Diags);
  379     return migration.getRemapper().flushToDisk(outputDir, *Diags);
  413   bool err = remapper.initFromDisk(outputDir, *Diags,
  517     Remapper.initFromDisk(outputDir, *Diags, /*ignoreIfFilesChanged=*/true);
  540   CaptureDiagnosticConsumer errRec(*Diags, *DiagClient, capturedDiags);
  564     capturedDiags.reportDiagnostics(*Diags);
  578   TransformActions TA(*Diags, capturedDiags, Ctx, Unit->getPreprocessor());
tools/clang/lib/ARCMigrate/ObjCMT.cpp
 2274                                             FileMgr, *Diags);
tools/clang/lib/Basic/FileManager.cpp
  503                                     StatCache.get(), *FS);
  509                                   StatCache.get(), *FS);
tools/clang/lib/CrossTU/CrossTranslationUnit.cpp
  353       new TextDiagnosticPrinter(llvm::errs(), &*DiagOpts);
  356       new DiagnosticsEngine(DiagID, &*DiagOpts, DiagClient));
tools/clang/lib/Frontend/ASTUnit.cpp
  401       QualType UsageType = getDeclUsageType(*Ctx, R.Declaration);
  593     PP.Initialize(*Target);
  599     Context->InitBuiltinTypes(*Target);
  819       PP, *AST->ModuleCache, AST->Ctx.get(), PCHContainerRdr, {},
  860     AST->TheSema.reset(new Sema(PP, *AST->Ctx, *AST->Consumer));
 1125     Clang->setFileManager(&*FileMgr);
 1167   SourceMgr = new SourceManager(getDiagnostics(), *FileMgr,
 1366       Capture.emplace(CaptureDiagnostics, *Diagnostics, &NewPreambleDiags,
 1379         PreambleInvocationIn, MainFileBuffer.get(), Bounds, *Diagnostics, VFS,
 1499       createVFSFromCompilerInvocation(*CI, *Diags);
 1505   AST->SourceMgr = new SourceManager(AST->getDiagnostics(), *AST->FileMgr,
 1749     CaptureDroppedDiagnostics Capture(CaptureDiagnostics, *Diags,
 1788   VFS = createVFSFromCompilerInvocation(*CI, *Diags, VFS);
 1801     AST->WriterData.reset(new ASTWriterData(*AST->ModuleCache));
 2418   SourceManager &SM = *SourceMgr;
tools/clang/lib/Frontend/ChainedIncludesSource.cpp
   74         MultiplexExternalSemaSource(Impl, *this->FinalReader) {}
tools/clang/lib/Frontend/CompilerInstance.cpp
  292     Diags->setClient(new VerifyDiagnosticConsumer(*Diags));
  296     SetUpDiagnosticLog(Opts, CodeGenOpts, *Diags);
  299     SetupSerializedDiagnostics(Opts, *Diags,
  303   ProcessWarningOptions(*Diags, *Opts);
  533     Listener->attachToASTReader(*Reader);
 1518       Listener->attachToASTReader(*ModuleManager);
 1591   ASTReader::ListenerScope ReadModuleNamesListener(*ModuleManager,
tools/clang/lib/Frontend/CompilerInvocation.cpp
 3458   Success &= ParseAnalyzerArgs(*Res.getAnalyzerOpts(), Args, Diags);
tools/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
   43                            *Diags, VFS);
   93   if (!CompilerInvocation::CreateFromArgs(*CI, CCArgs, *Diags) &&
tools/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp
  606   SDiagsRenderer Renderer(*this, *LangOpts, &*State->DiagOpts);
tools/clang/lib/Frontend/TextDiagnosticPrinter.cpp
   39   TextDiag.reset(new TextDiagnostic(OS, LO, &*DiagOpts));
  120   printDiagnosticOptions(DiagMessageStream, Level, Info, *DiagOpts);
tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
  243   AnalyzerOptions &AnOpts = *Clang->getAnalyzerOpts();
  260                                  *Clang->getAnalyzerOpts(),
tools/clang/lib/Serialization/ASTReader.cpp
  563   ProcessWarningOptions(*Diags, *DiagOpts, /*Report*/false);
  563   ProcessWarningOptions(*Diags, *DiagOpts, /*Report*/false);
  574   return checkDiagnosticMappings(*Diags, ExistingDiags, TopM->IsSystem,
tools/clang/lib/StaticAnalyzer/Checkers/ReturnValueChecker.cpp
  133   const bool *RawExpectedValue = CDM.lookup(*Call);
  147   std::string Name = getName(*Call);
tools/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
  568         return maybeEmitNote(R, *Call, N, {}, SelfRegion, "self",
  577       return maybeEmitNote(R, *Call, N, {}, ThisR, "this",
  596         return maybeEmitNote(R, *Call, N, {}, MR, ParamName,
  606           return maybeEmitNote(R, *Call, N, *P, RegionOfInterest, ParamName,
tools/clang/lib/StaticAnalyzer/Core/CheckerManager.cpp
  233       checkFn(*Msg.cloneWithState<ObjCMethodCall>(Pred->getState()), C);
  291       checkFn(*Call.cloneWithState(Pred->getState()), C);
tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
 2269         State, *getStateManager().getCallEventManager().getCaller(
tools/clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp
  535                                             *Call, *this);
  546       performTrivialCopy(Bldr, *I, *Call);
  551       defaultEvalCall(Bldr, *I, *Call, CallOpts);
  590     finishArgumentConstruction(DstPostArgumentCleanup, I, *Call);
  597                                              *Call, *this);
  656                                             *Call, *this);
  662     defaultEvalCall(Bldr, *I, *Call, CallOpts);
  665                                              *Call, *this);
  682                                             *Call, *this);
  688     defaultEvalCall(CallBldr, I, *Call);
  729                                              DstPostValue, *Call, *this);
tools/clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp
  329                                                  CEENode, *UpdatedCall, *this,
  341                                                  *UpdatedCall, *this,
  513     evalCall(dstCallEvaluated, *I, *CallTemplate);
 1010   if (isTrivialObjectAssignment(*Call)) {
 1011     performTrivialCopy(Bldr, Pred, *Call);
 1027     if (shouldInlineCall(*Call, D, Pred, CallOpts)) {
 1033           BifurcateCall(RD.getDispatchRegion(), *Call, D, Bldr, Pred);
 1039           conservativeEvalCall(*Call, Bldr, Pred, State);
 1045       if (inlineCall(*Call, D, Bldr, Pred, State))
 1051   conservativeEvalCall(*Call, Bldr, Pred, State);
tools/clang/lib/StaticAnalyzer/Core/ExprEngineObjC.cpp
  211                                                          *Msg, *this);
  213           finishArgumentConstruction(Dst, I, *Msg);
  235                                                    *Msg, *this);
  238                                             *Msg, *this);
  271     defaultEvalCall(Bldr, Pred, *UpdatedMsg);
  277     finishArgumentConstruction(dstArgCleanup, I, *Msg);
  281                                              *Msg, *this);
  286                                                     *Msg, *this);
tools/clang/lib/StaticAnalyzer/Core/ProgramState.cpp
  105   ProgramState NewState = *state;
  398   ProgramState NewState(*FromState);
  513   ProgramState NewSt = *St;
  525   ProgramState NewState = *state;
tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp
  336         *Ctx, *Opts, Plugins, CheckerRegistrationFns, PP.getDiagnostics());
  340                                             checkerMgr.get(), *Opts, Injector);
tools/clang/lib/Tooling/CompilationDatabase.cpp
  265   TextDiagnosticPrinter DiagnosticPrinter(Output, &*DiagOpts);
  269       &*DiagOpts, &DiagClient, false);
tools/clang/lib/Tooling/Refactoring.cpp
   43   TextDiagnosticPrinter DiagnosticPrinter(llvm::errs(), &*DiagOpts);
   46       &*DiagOpts, &DiagnosticPrinter, false);
tools/clang/lib/Tooling/Tooling.cpp
  241   return llvm::cantFail(getAbsolutePath(*llvm::vfs::getRealFileSystem(), File));
  324   ParseDiagnosticArgs(*DiagOpts, ParsedArgs);
  326       llvm::errs(), &*DiagOpts);
  328       IntrusiveRefCntPtr<DiagnosticIDs>(new DiagnosticIDs()), &*DiagOpts,
  469     auto AbsPath = getAbsolutePath(*OverlayFileSystem, SourcePath);
tools/clang/tools/arcmt-test/arcmt-test.cpp
  112     new TextDiagnosticPrinter(llvm::errs(), &*DiagOpts);
  115       new DiagnosticsEngine(DiagID, &*DiagOpts, DiagClient));
  119     verifyDiag = new VerifyDiagnosticConsumer(*Diags);
  124   if (!CompilerInvocation::CreateFromArgs(CI, Args, *Diags))
  157     new TextDiagnosticPrinter(llvm::errs(), &*DiagOpts);
  160       new DiagnosticsEngine(DiagID, &*DiagOpts, &*DiagClient));
  163   if (!CompilerInvocation::CreateFromArgs(origCI, Args, *TopDiags))
tools/clang/tools/c-index-test/core_main.cpp
  238         indexModuleFile(Mod, *Reader, *DataConsumer, IndexOpts);
  239         dumpModuleFileInputs(Mod, *Reader, OS);
tools/clang/tools/clang-format/ClangFormat.cpp
  304       new DiagnosticsEngine(DiagID, &*DiagOpts));
  309   SourceManager Sources(*Diags, Files);
tools/clang/tools/clang-fuzzer/handle-cxx/handle_cxx.cpp
   37       IntrusiveRefCntPtr<clang::DiagnosticIDs>(new DiagnosticIDs()), &*DiagOpts,
tools/clang/tools/clang-rename/ClangRename.cpp
  215     TextDiagnosticPrinter DiagnosticPrinter(errs(), &*DiagOpts);
  217         IntrusiveRefCntPtr<DiagnosticIDs>(new DiagnosticIDs()), &*DiagOpts,
tools/clang/tools/diagtool/ShowEnabledWarnings.cpp
   82   DiagsBuffer->FlushDiagnostics(*FinalDiags);
tools/clang/tools/driver/cc1_main.cpp
  215   DiagnosticsEngine Diags(DiagID, &*DiagOpts, DiagsBuffer);
tools/clang/tools/driver/cc1as_main.cpp
  562     = new TextDiagnosticPrinter(errs(), &*DiagOpts);
  565   DiagnosticsEngine Diags(DiagID, &*DiagOpts, DiagClient);
tools/clang/tools/driver/cc1gen_reproducer_main.cpp
  119   DiagnosticsEngine Diags(DiagID, &*DiagOpts, new IgnoringDiagConsumer());
  120   ProcessWarningOptions(Diags, *DiagOpts, /*ReportDiags=*/false);
tools/clang/tools/driver/driver.cpp
  433     = new TextDiagnosticPrinter(llvm::errs(), &*DiagOpts);
  438   DiagnosticsEngine Diags(DiagID, &*DiagOpts, DiagClient);
  443                                         &*DiagOpts, /*MergeChildRecords=*/true);
  448   ProcessWarningOptions(Diags, *DiagOpts, /*ReportDiags=*/false);
tools/clang/tools/extra/clang-change-namespace/tool/ClangChangeNamespace.cpp
  125   clang::TextDiagnosticPrinter DiagnosticPrinter(errs(), &*DiagOpts);
  127       IntrusiveRefCntPtr<DiagnosticIDs>(new DiagnosticIDs()), &*DiagOpts,
tools/clang/tools/extra/clang-include-fixer/tool/ClangIncludeFixer.cpp
  453   DiagnosticsEngine Diagnostics(new DiagnosticIDs, &*DiagOpts);
  454   TextDiagnosticPrinter DiagnosticPrinter(outs(), &*DiagOpts);
tools/clang/tools/extra/clang-move/tool/ClangMove.cpp
  172   clang::TextDiagnosticPrinter DiagnosticPrinter(errs(), &*DiagOpts);
  174       IntrusiveRefCntPtr<DiagnosticIDs>(new DiagnosticIDs()), &*DiagOpts,
tools/clang/tools/extra/clang-reorder-fields/tool/ClangReorderFields.cpp
   70   TextDiagnosticPrinter DiagnosticPrinter(errs(), &*DiagOpts);
   72       IntrusiveRefCntPtr<DiagnosticIDs>(new DiagnosticIDs()), &*DiagOpts,
tools/clang/tools/extra/clang-tidy/ClangTidy.cpp
  104         DiagPrinter(new TextDiagnosticPrinter(llvm::outs(), &*DiagOpts)),
  105         Diags(IntrusiveRefCntPtr<DiagnosticIDs>(new DiagnosticIDs), &*DiagOpts,
tools/clang/tools/extra/clang-tidy/ExpandModularHeadersPPCallbacks.cpp
  126     Recorder->recordFileContent(It->getFirst(), *It->getSecond(), *InMemoryFs);
tools/clang/tools/extra/clangd/ClangdServer.cpp
  164     Opts.ClangTidyOpts = GetClangTidyOptions(*FS, File);
tools/clang/tools/extra/clangd/Preamble.cpp
  137       CI, ContentsBuffer.get(), Bounds, *PreambleDiagsEngine,
tools/clang/tools/extra/clangd/unittests/FSTests.cpp
   41   StatCache.update(*FS, S);
tools/clang/tools/extra/modularize/ModularizeUtilities.cpp
   56       Target(TargetInfo::CreateTargetInfo(*Diagnostics, TargetOpts)),
   58       SourceMgr(new SourceManager(*Diagnostics, *FileMgr, false)),
   58       SourceMgr(new SourceManager(*Diagnostics, *FileMgr, false)),
   60                                   *SourceMgr, *Diagnostics, *LangOpts,
   60                                   *SourceMgr, *Diagnostics, *LangOpts,
  292   ModMap.reset(new ModuleMap(*SourceMgr, *Diagnostics, *LangOpts,
  292   ModMap.reset(new ModuleMap(*SourceMgr, *Diagnostics, *LangOpts,
  390     errs() << Loc.printToString(*SourceMgr)
tools/clang/tools/libclang/CIndex.cpp
 3362     *Log << ast_filename;
 3600     *Log << source_filename << ": ";
 3602       *Log << command_line_args[i] << " ";
 4006     *Log << TU << ' ' << FileName;
 4135     *Log << TU;
 5688     *Log << llvm::format("(%s:%d:%d) = %s",
 5709       *Log << llvm::format("  -> %s(%s:%d:%d)",
 6775     *Log << TU << ' ' << Location;
 6812     *Log << TU << ' ' << Range;
 7656     LOG_FUNC_SECTION { *Log << "<null input>"; }
 7661     *Log << TU << ' ';
 7664     *Log << clang_getRange(bloc, eloc);
tools/clang/tools/libclang/CIndexCodeCompletion.cpp
  344         *allocated_results->SourceMgr, allocated_results->LangOpts,
  361           IntrusiveRefCntPtr<DiagnosticIDs>(new DiagnosticIDs), &*DiagOpts)),
  363       SourceMgr(new SourceManager(*Diag, *this->FileMgr)),
  363       SourceMgr(new SourceManager(*Diag, *this->FileMgr)),
  763                     CXXIdx->getPCHContainerOperations(), *Results->Diag,
  764                     Results->LangOpts, *Results->SourceMgr, *Results->FileMgr,
  764                     Results->LangOpts, *Results->SourceMgr, *Results->FileMgr,
  860     *Log << TU << ' '
tools/clang/tools/libclang/CIndexDiagnostic.cpp
  188                                   &*DOpts, Set);
tools/clang/tools/libclang/CIndexHigh.cpp
  415       *Log << "Null cursor";
  420       *Log << "Got CXCursor_NoDeclFound";
  425       *Log << "Null file";
  430       *Log << "Null visitor";
  435     *Log << cursor << " @" << static_cast<const FileEntry *>(file);
  466       *Log << "cursor is not referencing a declaration";
  488       *Log << "Null file";
  493       *Log << "Null visitor";
  498     *Log << TU << " @" << static_cast<const FileEntry *>(file);
tools/clang/tools/libclang/CXSourceLocation.cpp
  134       *Log << llvm::format("(\"%s\", %d, %d) = invalid",
  142     *Log << llvm::format("(\"%s\", %d, %d) = ", File->getName().str().c_str(),
tools/clang/tools/libclang/Indexing.cpp
  614   DiagnosticErrorTrap DiagTrap(*Diags);
  891     *Log << source_filename << ": ";
  893       *Log << command_line_args[i] << " ";
  948     *Log << TU;
tools/clang/unittests/Basic/SourceManagerTest.cpp
   63                           Diags, LangOpts, &*Target);
   68   PP.Initialize(*Target);
  272                           Diags, LangOpts, &*Target);
  277   PP.Initialize(*Target);
  390                           Diags, LangOpts, &*Target);
  395   PP.Initialize(*Target);
tools/clang/unittests/Driver/ToolChainTest.cpp
   34   DiagnosticsEngine Diags(DiagID, &*DiagOpts, new TestDiagnosticConsumer);
   88   DiagnosticsEngine Diags(DiagID, &*DiagOpts, new TestDiagnosticConsumer);
  128   DiagnosticsEngine Diags(DiagID, &*DiagOpts, new TestDiagnosticConsumer);
  160   DiagnosticsEngine Diags(DiagID, &*DiagOpts, new TestDiagnosticConsumer);
tools/clang/unittests/Frontend/OutputStreamTest.cpp
   65       new TextDiagnosticPrinter(llvm::nulls(), &*DiagOpts), true);
   94         new TextDiagnosticPrinter(llvm::nulls(), &*DiagOpts), true);
tools/clang/unittests/Lex/LexerTest.cpp
   61     PP->Initialize(*Target);
tools/clang/unittests/Lex/PPCallbacksTest.cpp
  212     PP.Initialize(*Target);
  242     PP.Initialize(*Target);
  276     PP.Initialize(*Target);
  283     Context.InitBuiltinTypes(*Target);
tools/clang/unittests/Lex/PPConditionalDirectiveRecordTest.cpp
   83   PP.Initialize(*Target);
tools/clang/unittests/StaticAnalyzer/CallDescriptionTest.cpp
   66     const bool *LookupResult = RM.lookup(*Call);
tools/clang/unittests/StaticAnalyzer/Reusables.h
   59       : C(C), ChkMgr(C.getASTContext(), *C.getAnalyzerOpts()), CTU(C),
   63              *C.getAnalyzerOpts()),
tools/clang/unittests/Tooling/RewriterTestContext.h
   39                      &*DiagOpts),
   40          DiagnosticPrinter(llvm::outs(), &*DiagOpts),
tools/clang/unittests/Tooling/Syntax/TokensTest.cpp
  135     this->Buffer = TokenBuffer(*SourceMgr);
  160         *SourceMgr, LangOptions());
  206       return Q == T.text(*SourceMgr);
  244       new SourceManager(*Diags, *FileMgr);
  244       new SourceManager(*Diags, *FileMgr);
  246   TokenBuffer Buffer = TokenBuffer(*SourceMgr);
  745   auto &SM = *SourceMgr;
  770   auto &SM = *SourceMgr;
tools/clang/unittests/Tooling/Syntax/TreeTest.cpp
  119       new SourceManager(*Diags, *FileMgr);
  119       new SourceManager(*Diags, *FileMgr);
tools/lldb/source/Commands/CommandObjectReproducer.cpp
  267       static_cast<vfs::RedirectingFileSystem &>(*vfs).dump(os);
tools/lldb/source/Host/common/FileSystem.cpp
  194   vfs::recursive_directory_iterator Iter(*m_fs, path, EC);
  451       static_cast<vfs::RedirectingFileSystem &>(*m_fs).lookupPath(path);
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
  694       *diagnostics_engine, instance->getInvocation().TargetOpts));
unittests/Support/VirtualFileSystemTest.cpp
  600   auto I = vfs::recursive_directory_iterator(*FS, Twine(TestDirectory), EC);
  609   I = vfs::recursive_directory_iterator(*FS, Twine(TestDirectory), EC);
  650     auto I = vfs::recursive_directory_iterator(*FS, Twine(TestDirectory), EC);
  675     auto I = vfs::recursive_directory_iterator(*FS, Twine(TestDirectory), EC);
  732   for (vfs::recursive_directory_iterator I(*FS, Twine(TestDirectory), EC), E;
  804   checkContents(vfs::recursive_directory_iterator(*O, "/", EC),
  808   checkContents(vfs::recursive_directory_iterator(*O, "/", EC),
  813   checkContents(vfs::recursive_directory_iterator(*O, "/", EC),
  828   checkContents(vfs::recursive_directory_iterator(*O, "/dir2", EC),
  830   checkContents(vfs::recursive_directory_iterator(*O, "/", EC),
 1839                                         *O, "//root", EC),