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

References

lib/LTO/LTOModule.cpp
   58   return !errorToBool(BCData.takeError());
   69   return !errorToBool(BCData.takeError());
   85   if (errorToBool(BCOrErr.takeError()))
   98   if (errorToBool(BCOrErr.takeError()))
tools/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
  625   if (errorToBool(BinaryOrErr.takeError()) || !isa<ObjectFile>(*BinaryOrErr))
tools/clang/unittests/Tooling/StencilTest.cpp
  169   EXPECT_TRUE(llvm::errorToBool(ResultOrErr.takeError()))
unittests/Remarks/BitstreamRemarksParsingTest.cpp
   30   EXPECT_FALSE(errorToBool(MaybeParser.takeError()));
   36   EXPECT_FALSE(errorToBool(Remark.takeError())); // Check for parsing errors.
   43   EXPECT_TRUE(errorToBool(std::move(E))); // Check for parsing errors.
   54   EXPECT_FALSE(errorToBool(BSSerializer.takeError()));
   60   EXPECT_FALSE(errorToBool(MaybeBSParser.takeError()));
   66   EXPECT_FALSE(errorToBool(BSRemark.takeError())); // Check for parsing errors.
   73   EXPECT_TRUE(errorToBool(std::move(BSE))); // Check for parsing errors.
  161   EXPECT_FALSE(errorToBool(MaybeParser.takeError()));
  167       errorToBool(MaybeRemark.takeError())); // Check for parsing errors.
  222   EXPECT_TRUE(errorToBool(std::move(E))); // Check for parsing errors.
  262   EXPECT_FALSE(errorToBool(BSSerializer.takeError()));
  328   EXPECT_FALSE(errorToBool(MaybeBSParser.takeError()));
unittests/Remarks/BitstreamRemarksSerializerTest.cpp
   48   EXPECT_FALSE(errorToBool(MaybeSerializer.takeError()));
unittests/Remarks/YAMLRemarksParsingTest.cpp
   19   EXPECT_FALSE(errorToBool(MaybeParser.takeError()));
   24   EXPECT_FALSE(errorToBool(Remark.takeError())); // Check for parsing errors.
   29   EXPECT_TRUE(errorToBool(std::move(E))); // Check for parsing errors.
   35   EXPECT_FALSE(errorToBool(MaybeParser.takeError()));
   40   EXPECT_FALSE(errorToBool(Remark.takeError())); // Check for parsing errors.
   45   EXPECT_TRUE(errorToBool(std::move(E))); // Check for parsing errors.
   52   EXPECT_FALSE(errorToBool(MaybeParser.takeError()));
  403   EXPECT_FALSE(errorToBool(MaybeParser.takeError()));
  409       errorToBool(MaybeRemark.takeError())); // Check for parsing errors.
  464   EXPECT_TRUE(errorToBool(std::move(E))); // Check for parsing errors.
  575   EXPECT_FALSE(errorToBool(MaybeParser.takeError()));
  581       errorToBool(MaybeRemark.takeError())); // Check for parsing errors.
  636   EXPECT_TRUE(errorToBool(std::move(E))); // Check for parsing errors.
  651   EXPECT_FALSE(errorToBool(MaybeParser.takeError()));
unittests/Remarks/YAMLRemarksSerializerTest.cpp
   38   EXPECT_FALSE(errorToBool(MaybeS.takeError()));
unittests/Support/FileCheckTest.cpp
  170   EXPECT_TRUE(errorToBool(ParsedVarResult.takeError()));
  174   EXPECT_TRUE(errorToBool(ParsedVarResult.takeError()));
  228         errorToBool(Context.defineCmdlineVariables(GlobalDefines, SM)));
  245     return errorToBool(
  259     return errorToBool(P.match(BufferRef, MatchLen, SM).takeError());
  405   EXPECT_FALSE(errorToBool(Context.defineCmdlineVariables(GlobalDefines, SM)));
  460   EXPECT_TRUE(errorToBool(Cxt.defineCmdlineVariables(GlobalDefines, SM)));
  463   EXPECT_TRUE(errorToBool(Cxt.defineCmdlineVariables(GlobalDefines, SM)));
  468   EXPECT_TRUE(errorToBool(Cxt.defineCmdlineVariables(GlobalDefines, SM)));
  471   EXPECT_TRUE(errorToBool(Cxt.defineCmdlineVariables(GlobalDefines, SM)));
  476   EXPECT_TRUE(errorToBool(Cxt.defineCmdlineVariables(GlobalDefines, SM)));
  479   EXPECT_TRUE(errorToBool(Cxt.defineCmdlineVariables(GlobalDefines, SM)));
  485   EXPECT_TRUE(errorToBool(Cxt.defineCmdlineVariables(GlobalDefines, SM)));
  490   EXPECT_TRUE(errorToBool(Cxt.defineCmdlineVariables(GlobalDefines, SM)));
  496   EXPECT_TRUE(errorToBool(Cxt.defineCmdlineVariables(GlobalDefines, SM)));
  508   ASSERT_FALSE(errorToBool(Cxt.defineCmdlineVariables(GlobalDefines, SM)));
  541   EXPECT_TRUE(errorToBool(UnknownVar.takeError()));
  546   EXPECT_TRUE(errorToBool(LocalVar.takeError()));
  551   EXPECT_TRUE(errorToBool((*ExpressionAST)->eval().takeError()));
  558   EXPECT_TRUE(errorToBool(ExpressionVal.takeError()));
  564   EXPECT_TRUE(errorToBool(ExpressionVal.takeError()));
  566   EXPECT_TRUE(errorToBool(EmptyVar.takeError()));
  574   ASSERT_FALSE(errorToBool(Cxt.defineCmdlineVariables(GlobalDefines, SM)));
  591   EXPECT_FALSE(errorToBool(Cxt.getPatternVarValue(GlobalVarStr).takeError()));
unittests/XRay/FDRBlockIndexerTest.cpp
   60       ASSERT_FALSE(errorToBool(R->apply(Indexer)));
   61     ASSERT_FALSE(errorToBool(Indexer.flush()));
unittests/XRay/FDRBlockVerifierTest.cpp
   56       ASSERT_FALSE(errorToBool(R->apply(Indexer)));
   57     ASSERT_FALSE(errorToBool(Indexer.flush()));
   65         ASSERT_FALSE(errorToBool(R->apply(Verifier)));
   66       ASSERT_FALSE(errorToBool(Verifier.verify()));
   83     ASSERT_FALSE(errorToBool(R->apply(Verifier)));
   84   ASSERT_FALSE(errorToBool(Verifier.verify()));
   97     ASSERT_FALSE(errorToBool(R->apply(Verifier)));
   98   ASSERT_FALSE(errorToBool(Verifier.verify()));
  112     ASSERT_FALSE(errorToBool(R->apply(Verifier)));
  113   ASSERT_FALSE(errorToBool(Verifier.verify()));
unittests/XRay/FDRProducerConsumerTest.cpp
  128   ASSERT_FALSE(errorToBool(BE.apply(*this->Writer)));
  130   ASSERT_FALSE(errorToBool(R->apply(*this->Writer)));
  154     ASSERT_FALSE(errorToBool(P->apply(Writer2)));
  169   ASSERT_FALSE(errorToBool(BE.apply(*this->Writer)));
  171   ASSERT_FALSE(errorToBool(R->apply(*this->Writer)));
  195     ASSERT_FALSE(errorToBool(P->apply(Writer2)));
unittests/XRay/FDRRecordPrinterTest.cpp
  114   ASSERT_FALSE(errorToBool(this->R->apply(this->P)));
  132   ASSERT_FALSE(errorToBool(R.apply(P)));
  142   ASSERT_FALSE(errorToBool(R.apply(P)));
  152   ASSERT_FALSE(errorToBool(R.apply(P)));
  162   ASSERT_FALSE(errorToBool(R.apply(P)));
unittests/XRay/FDRRecordsTest.cpp
   63       ASSERT_FALSE(errorToBool(R->apply(Indexer)));
   64     ASSERT_FALSE(errorToBool(Indexer.flush()));
   87     ASSERT_FALSE(errorToBool(R->apply(Verifier)));
   88   ASSERT_FALSE(errorToBool(Verifier.verify()));
  131       ASSERT_FALSE(errorToBool(R->apply(Indexer)));
  132     ASSERT_FALSE(errorToBool(Indexer.flush()));
  141         ASSERT_FALSE(errorToBool(R->apply(Verifier)));
  142       ASSERT_FALSE(errorToBool(Verifier.verify()));
  156         ASSERT_FALSE(errorToBool(R->apply(BP)));
unittests/XRay/FDRTraceWriterTest.cpp
   54     ASSERT_FALSE(errorToBool(P->apply(Writer)));
   99     ASSERT_FALSE(errorToBool(P->apply(Writer)));
  151     ASSERT_FALSE(errorToBool(P->apply(Writer)));
unittests/XRay/ProfileTest.cpp
   49   EXPECT_TRUE(errorToBool(P.addBlock({})));
   52   EXPECT_TRUE(errorToBool(P.addBlock({1, {}})));
   55   EXPECT_FALSE(errorToBool(P.addBlock(
   65   EXPECT_FALSE(errorToBool(P0.addBlock(
   89   EXPECT_FALSE(errorToBool(P0.addBlock(
  116   EXPECT_FALSE(errorToBool(P0.addBlock(
  120   EXPECT_FALSE(errorToBool(P0.addBlock(
  125   EXPECT_FALSE(errorToBool(P1.addBlock(
  128   EXPECT_FALSE(errorToBool(P1.addBlock(
  164   EXPECT_FALSE(errorToBool(P0.addBlock(
  167   EXPECT_FALSE(errorToBool(P1.addBlock(
  187   EXPECT_FALSE(errorToBool(Profiles[0].addBlock(Profile::Block{
  190   EXPECT_FALSE(errorToBool(Profiles[1].addBlock(Profile::Block{
  193   EXPECT_FALSE(errorToBool(Profiles[2].addBlock(Profile::Block{
  215   EXPECT_FALSE(errorToBool(Profiles[0].addBlock(Profile::Block{
  219   EXPECT_FALSE(errorToBool(Profiles[0].addBlock(Profile::Block{
  224   EXPECT_FALSE(errorToBool(Profiles[1].addBlock(Profile::Block{
  227   EXPECT_FALSE(errorToBool(Profiles[1].addBlock(Profile::Block{