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

References

include/llvm/ADT/FunctionExtras.h
  192   unique_function(unique_function &&RHS) noexcept {
  221   unique_function &operator=(unique_function &&RHS) noexcept {
  221   unique_function &operator=(unique_function &&RHS) noexcept {
  228     this->~unique_function();
  229     new (this) unique_function(std::move(RHS));
include/llvm/ExecutionEngine/JITSymbol.h
  221   using GetAddressFtor = unique_function<Expected<JITTargetAddress>()>;
  329   using OnResolvedFunction = unique_function<void(Expected<LookupResult>)>;
include/llvm/ExecutionEngine/Orc/Core.h
  111 using SymbolsResolvedCallback = unique_function<void(Expected<SymbolMap>)>;
include/llvm/ExecutionEngine/RuntimeDyld.h
  275                 unique_function<Error(std::unique_ptr<LoadedObjectInfo>,
  278                 unique_function<void(Error)> OnEmitted);
  299     unique_function<Error(std::unique_ptr<RuntimeDyld::LoadedObjectInfo>,
  302     unique_function<void(Error)> OnEmitted);
include/llvm/IR/PassInstrumentation.h
  117   SmallVector<llvm::unique_function<BeforePassFunc>, 4> BeforePassCallbacks;
  118   SmallVector<llvm::unique_function<AfterPassFunc>, 4> AfterPassCallbacks;
  119   SmallVector<llvm::unique_function<AfterPassInvalidatedFunc>, 4>
  121   SmallVector<llvm::unique_function<BeforeAnalysisFunc>, 4>
  123   SmallVector<llvm::unique_function<AfterAnalysisFunc>, 4>
include/llvm/Support/Threading.h
   83     llvm::unique_function<void()> Func,
lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
 1193     unique_function<void(Error)> OnEmitted,
 1410                    unique_function<Error(
 1414                    unique_function<void(Error)> OnEmitted) {
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h
  552                             unique_function<void(Error)> OnEmitted,
lib/Support/Threading.cpp
  113 using AsyncThreadInfo = llvm::unique_function<void()>;
  135     llvm::unique_function<void()> Func,
tools/clang/include/clang/Lex/Preprocessor.h
  129   llvm::unique_function<void(const clang::Token &)> OnToken;
 1007   void setTokenWatcher(llvm::unique_function<void(const clang::Token &)> F) {
tools/clang/tools/extra/clangd/ClangdLSPServer.cpp
  204     Callback<llvm::json::Value> ReplyHandler = nullptr;
  259   llvm::json::Value bindReply(Callback<llvm::json::Value> Reply) {
  260     llvm::Optional<std::pair<int, Callback<llvm::json::Value>>> OldestCB;
  436                        /*ReplyHandler*/ Callback<llvm::json::Value>>>
  445                               Callback<llvm::json::Value> CB) {
  459                                    Callback<llvm::json::Value> Reply) {
  591                                  Callback<std::nullptr_t> Reply) {
  600                              Callback<std::nullptr_t> Reply) {
  646                                 Callback<llvm::json::Value> Reply) {
  734     Callback<std::vector<SymbolInformation>> Reply) {
  749                                       Callback<llvm::Optional<Range>> Reply) {
  755                                Callback<WorkspaceEdit> Reply) {
  798     Callback<std::vector<TextEdit>> Reply) {
  811     Callback<std::vector<TextEdit>> Reply) {
  828     Callback<std::vector<TextEdit>> Reply) {
  871                                        Callback<llvm::json::Value> Reply) {
  906                                    Callback<llvm::json::Value> Reply) {
  948                                    Callback<CompletionList> Reply) {
  973                                       Callback<SignatureHelp> Reply) {
 1012                                        Callback<std::vector<Location>> Reply) {
 1031     Callback<std::vector<Location>> Reply) {
 1050     Callback<llvm::Optional<URIForFile>> Reply) {
 1065     Callback<std::vector<DocumentHighlight>> Reply) {
 1071                               Callback<llvm::Optional<Hover>> Reply) {
 1097     Callback<Optional<TypeHierarchyItem>> Reply) {
 1104     Callback<Optional<TypeHierarchyItem>> Reply) {
 1153                                   Callback<std::vector<Location>> Reply) {
 1159                                    Callback<std::vector<SymbolDetails>> Reply) {
 1166     Callback<std::vector<SelectionRange>> Reply) {
tools/clang/tools/extra/clangd/ClangdLSPServer.h
   66   void onInitialize(const InitializeParams &, Callback<llvm::json::Value>);
   67   void onShutdown(const ShutdownParams &, Callback<std::nullptr_t>);
   68   void onSync(const NoParams &, Callback<std::nullptr_t>);
   73                                   Callback<std::vector<TextEdit>>);
   75                                  Callback<std::vector<TextEdit>>);
   77                             Callback<std::vector<TextEdit>>);
   82                         Callback<llvm::json::Value>);
   83   void onCodeAction(const CodeActionParams &, Callback<llvm::json::Value>);
   84   void onCompletion(const CompletionParams &, Callback<CompletionList>);
   86                        Callback<SignatureHelp>);
   88                          Callback<std::vector<Location>>);
   90                         Callback<std::vector<Location>>);
   91   void onReference(const ReferenceParams &, Callback<std::vector<Location>>);
   93                             Callback<llvm::Optional<URIForFile>>);
   95                            Callback<std::vector<DocumentHighlight>>);
   97   void onCommand(const ExecuteCommandParams &, Callback<llvm::json::Value>);
   99                          Callback<std::vector<SymbolInformation>>);
  101                        Callback<llvm::Optional<Range>>);
  102   void onRename(const RenameParams &, Callback<WorkspaceEdit>);
  104                Callback<llvm::Optional<Hover>>);
  106                        Callback<llvm::Optional<TypeHierarchyItem>>);
  108                               Callback<llvm::Optional<TypeHierarchyItem>>);
  111                     Callback<std::vector<SymbolDetails>>);
  113                         Callback<std::vector<SelectionRange>>);
  165   void call(StringRef Method, llvm::json::Value Params, Callback<Response> CB) {
  184                Callback<llvm::json::Value> CB);
tools/clang/tools/extra/clangd/ClangdServer.cpp
  187                                 Callback<CodeCompleteResult> CB) {
  247                                  Callback<SignatureHelp> CB) {
  305                                  Callback<llvm::Optional<Range>> CB) {
  333                           bool WantFormat, Callback<std::vector<TextEdit>> CB) {
  374                                    Callback<std::vector<TweakRef>> CB) {
  393                               Callback<Tweak::Effect> CB) {
  421                            llvm::unique_function<void(std::string)> Callback) {
  441                                   Callback<std::vector<LocatedSymbol>> CB) {
  453     PathRef Path, Callback<llvm::Optional<clangd::Path>> CB) {
  491     PathRef File, Position Pos, Callback<std::vector<DocumentHighlight>> CB) {
  503                              Callback<llvm::Optional<HoverInfo>> CB) {
  518                                  Callback<Optional<TypeHierarchyItem>> CB) {
  532     Callback<llvm::Optional<TypeHierarchyItem>> CB) {
  544     Callback<std::vector<SymbolInformation>> CB) {
  554                                    Callback<std::vector<DocumentSymbol>> CB) {
  565                                   Callback<std::vector<Location>> CB) {
  577                               Callback<std::vector<SymbolDetails>> CB) {
  589                                   Callback<std::vector<Range>> CB) {
tools/clang/tools/extra/clangd/ClangdServer.h
  185                     Callback<CodeCompleteResult> CB);
  189   void signatureHelp(PathRef File, Position Pos, Callback<SignatureHelp> CB);
  193                       Callback<std::vector<LocatedSymbol>> CB);
  198                           Callback<llvm::Optional<clangd::Path>> CB);
  202                               Callback<std::vector<DocumentHighlight>> CB);
  206                  Callback<llvm::Optional<HoverInfo>> CB);
  211                      Callback<llvm::Optional<TypeHierarchyItem>> CB);
  216                             Callback<llvm::Optional<TypeHierarchyItem>> CB);
  220                         Callback<std::vector<SymbolInformation>> CB);
  224                        Callback<std::vector<DocumentSymbol>> CB);
  228                       Callback<std::vector<Location>> CB);
  246                      Callback<llvm::Optional<Range>> CB);
  254               bool WantFormat, Callback<std::vector<TextEdit>> CB);
  263                        Callback<std::vector<TweakRef>> CB);
  267                   Callback<Tweak::Effect> CB);
  272   void dumpAST(PathRef File, llvm::unique_function<void(std::string)> Callback);
  279                   Callback<std::vector<SymbolDetails>> CB);
  283                       Callback<std::vector<Range>> CB);
tools/clang/tools/extra/clangd/CodeComplete.cpp
  681                      llvm::unique_function<void()> ResultsCallback)
  788   llvm::unique_function<void()> ResultsCallback;
tools/clang/tools/extra/clangd/TUScheduler.cpp
  186              llvm::unique_function<void(llvm::Expected<InputsAndAST>)> Action);
  194       llvm::unique_function<void(std::shared_ptr<const PreambleData>)>);
  215   void startTask(llvm::StringRef Name, llvm::unique_function<void()> Task,
  234     llvm::unique_function<void()> Action;
  528     llvm::unique_function<void(llvm::Expected<InputsAndAST>)> Action) {
  567     llvm::unique_function<void(std::shared_ptr<const PreambleData>)> Callback) {
  630                           llvm::unique_function<void()> Task,
  920                       llvm::unique_function<void()> Action) {
  932     llvm::unique_function<void(llvm::Expected<InputsAndAST>)> Action) {
  945                                   Callback<InputsAndPreamble> Action) {
tools/clang/tools/extra/clangd/TUScheduler.h
  184   void run(llvm::StringRef Name, llvm::unique_function<void()> Action);
  195                   Callback<InputsAndAST> Action);
  225                        Callback<InputsAndPreamble> Action);
tools/clang/tools/extra/clangd/Threading.cpp
   71                                llvm::unique_function<void()> Action) {
tools/clang/tools/extra/clangd/Threading.h
  113   void runAsync(const llvm::Twine &Name, llvm::unique_function<void()> Action);
  124 std::future<T> runAsync(llvm::unique_function<T()> Action) {
tools/clang/tools/extra/clangd/index/Background.h
   56   using Factory = llvm::unique_function<BackgroundIndexStorage *(PathRef)>;
tools/clang/tools/extra/clangd/unittests/SyncAPI.cpp
   40   operator llvm::unique_function<void(T)>() && {
tools/clang/tools/extra/clangd/unittests/TUSchedulerTests.cpp
   58                           llvm::unique_function<void()> CB) {
   63   static Key<llvm::unique_function<void(PathRef File, std::vector<Diag>)>>
  101                        llvm::unique_function<void(std::vector<Diag>)> CB) {
  114                        llvm::unique_function<void(std::vector<Diag>)> CB) {
  124 Key<llvm::unique_function<void(PathRef File, std::vector<Diag>)>>
tools/clang/unittests/AST/RecursiveASTVisitorTest.cpp
   27   ProcessASTAction(llvm::unique_function<void(clang::ASTContext &)> Process)
   49   llvm::unique_function<void(clang::ASTContext &)> Process;
unittests/ADT/FunctionExtrasTest.cpp
   19   unique_function<int(int, int)> Sum = [](int A, int B) { return A + B; };
   22   unique_function<int(int, int)> Sum2 = std::move(Sum);
   25   unique_function<int(int, int)> Sum3 = [](int A, int B) { return A + B; };
   40   unique_function<void(int &)> Inc = [](int &X) { ++X; };
   47   unique_function<int(std::unique_ptr<int> &&)> ReadAndDeallocByRef =
   61   unique_function<int(std::unique_ptr<int>)> ReadAndDeallocByVal =
   77   unique_function<long()> Tmp;
   79   unique_function<long()> C1 = [A]() { return A; };
   84   unique_function<long()> C2 = [A, B]() { return A + B; };
   89   unique_function<long()> C3 = [A, B, C]() { return A + B + C; };
   94   unique_function<long()> C4 = [A, B, C, D]() { return A + B + C + D; };
   99   unique_function<long()> C5 = [A, B, C, D, E]() { return A + B + C + D + E; };
  111   unique_function<int(int)> Small = SmallCallable();
  113   unique_function<int(int)> Small2 = std::move(Small);
  125   unique_function<int()> Large = LargeCallable();
  127   unique_function<int()> Large2 = std::move(Large);
  141   unique_function<void(CopyCounter)> ByValF = [](CopyCounter) {};
  155   unique_function<void(const CopyCounter &)> ByRefF = [](const CopyCounter &) {
  174   unique_function<void(const Uncopyable &)> UncopyableF =
  189   unique_function<void(MoveCounter)> ByValF = [](MoveCounter) {};
  202   unique_function<void(MoveCounter &&)> ByRefF = [](MoveCounter &&) {};
  220   unique_function<void(const Unmovable &)> UnmovableF = [](const Unmovable &) {
usr/include/c++/7.4.0/thread
  226 	  static __tuple_element_t<_Index, _Tuple>&&
usr/include/c++/7.4.0/tuple
 1313     constexpr __tuple_element_t<__i, tuple<_Elements...>>&
 1319     constexpr const __tuple_element_t<__i, tuple<_Elements...>>&
 1325     constexpr __tuple_element_t<__i, tuple<_Elements...>>&&
 1328       typedef __tuple_element_t<__i, tuple<_Elements...>> __element_type;