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

Declarations

include/llvm/ADT/Any.h
  102   template <class T> friend T any_cast(Any &Value);

References

lib/Passes/StandardInstrumentations.cpp
   36     return std::make_pair(any_cast<const Module *>(IR), std::string());
   39     const Function *F = any_cast<const Function *>(IR);
   47     const LazyCallGraph::SCC *C = any_cast<const LazyCallGraph::SCC *>(IR);
   59     const Loop *L = any_cast<const Loop *>(IR);
  114     const Module *M = any_cast<const Module *>(IR);
  121     const Function *F = any_cast<const Function *>(IR);
  128     const LazyCallGraph::SCC *C = any_cast<const LazyCallGraph::SCC *>(IR);
  136     const Loop *L = any_cast<const Loop *>(IR);
tools/lldb/include/lldb/Core/RichManglingContext.h
  101     return llvm::any_cast<ParserT *>(parser);
unittests/ADT/AnyTest.cpp
   86   EXPECT_EQ(7, llvm::any_cast<int>(B));
   87   EXPECT_EQ(7, llvm::any_cast<int>(B));
   89   EXPECT_STREQ("hello", llvm::any_cast<const char *>(D));
   90   EXPECT_STREQ("hello", llvm::any_cast<const char *>(D));
   92   EXPECT_EQ('x', llvm::any_cast<char>(E));
   93   EXPECT_EQ('x', llvm::any_cast<char>(E));
   96   EXPECT_EQ(7, llvm::any_cast<int>(F));
   97   EXPECT_EQ(7, llvm::any_cast<int>(F));
  100   EXPECT_EQ(8, llvm::any_cast<int>(G));
  101   EXPECT_EQ(8, llvm::any_cast<int>(G));
  104   EXPECT_EQ(7, llvm::any_cast<int>(A));
  105   EXPECT_EQ(7, llvm::any_cast<int>(A));
  108   EXPECT_EQ(8, llvm::any_cast<int>(E));
  109   EXPECT_EQ(8, llvm::any_cast<int>(E));
  121   EXPECT_EQ(42, llvm::any_cast<int>(A));
  125   llvm::any_cast<int &>(A) = 43;
  126   EXPECT_EQ(43, llvm::any_cast<int>(A));
  146   TestType T2 = llvm::any_cast<TestType>(A);
  163   EXPECT_DEATH(llvm::any_cast<int>(A), "");
  165   EXPECT_DEATH(llvm::any_cast<float>(B), "");
  166   EXPECT_DEATH(llvm::any_cast<int *>(B), "");
  168   EXPECT_DEATH(llvm::any_cast<std::string>(C), "");
  170   EXPECT_DEATH(llvm::any_cast<unsigned char>(D), "");