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

References

tools/clang/unittests/ASTMatchers/Dynamic/VariantValueTest.cpp
   74   EXPECT_TRUE(Value.isString());
   75   EXPECT_EQ("A", Value.getString());
   76   EXPECT_TRUE(Value.hasValue());
   77   EXPECT_FALSE(Value.isBoolean());
   78   EXPECT_FALSE(Value.isDouble());
   79   EXPECT_FALSE(Value.isUnsigned());
   80   EXPECT_FALSE(Value.isMatcher());
   81   EXPECT_EQ("String", Value.getTypeAsString());
   83   Value = VariantMatcher::SingleMatcher(recordDecl());
   84   EXPECT_TRUE(Value.hasValue());
   85   EXPECT_FALSE(Value.isBoolean());
   86   EXPECT_FALSE(Value.isDouble());
   87   EXPECT_FALSE(Value.isUnsigned());
   88   EXPECT_FALSE(Value.isString());
   89   EXPECT_TRUE(Value.isMatcher());
   90   EXPECT_TRUE(Value.getMatcher().hasTypedMatcher<Decl>());
   91   EXPECT_FALSE(Value.getMatcher().hasTypedMatcher<UnaryOperator>());
   92   EXPECT_EQ("Matcher<Decl>", Value.getTypeAsString());
   94   Value = true;
   95   EXPECT_TRUE(Value.isBoolean());
   96   EXPECT_EQ(true, Value.getBoolean());
   97   EXPECT_TRUE(Value.hasValue());
   98   EXPECT_FALSE(Value.isUnsigned());
   99   EXPECT_FALSE(Value.isMatcher());
  100   EXPECT_FALSE(Value.isString());
  102   Value = 3.14;
  103   EXPECT_TRUE(Value.isDouble());
  104   EXPECT_EQ(3.14, Value.getDouble());
  105   EXPECT_TRUE(Value.hasValue());
  106   EXPECT_FALSE(Value.isBoolean());
  107   EXPECT_FALSE(Value.isUnsigned());
  108   EXPECT_FALSE(Value.isMatcher());
  109   EXPECT_FALSE(Value.isString());
  111   Value = 17;
  112   EXPECT_TRUE(Value.isUnsigned());
  113   EXPECT_EQ(17U, Value.getUnsigned());
  114   EXPECT_FALSE(Value.isBoolean());
  115   EXPECT_FALSE(Value.isDouble());
  116   EXPECT_TRUE(Value.hasValue());
  117   EXPECT_FALSE(Value.isMatcher());
  118   EXPECT_FALSE(Value.isString());
  120   Value = VariantValue();
  121   EXPECT_FALSE(Value.hasValue());
  122   EXPECT_FALSE(Value.isBoolean());
  123   EXPECT_FALSE(Value.isDouble());
  124   EXPECT_FALSE(Value.isUnsigned());
  125   EXPECT_FALSE(Value.isString());
  126   EXPECT_FALSE(Value.isMatcher());
  127   EXPECT_EQ("Nothing", Value.getTypeAsString());