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

References

tools/clang/unittests/AST/CommentLexer.cpp
  539   lexString(Source, Toks);
  541   ASSERT_EQ(11U, Toks.size());
  543   ASSERT_EQ(tok::text,      Toks[0].getKind());
  544   ASSERT_EQ(StringRef(" "), Toks[0].getText());
  546   ASSERT_EQ(tok::backslash_command, Toks[1].getKind());
  547   ASSERT_EQ(StringRef("Foo"), getCommandName(Toks[1]));
  549   ASSERT_EQ(tok::newline,     Toks[2].getKind());
  551   ASSERT_EQ(tok::text,      Toks[3].getKind());
  552   ASSERT_EQ(StringRef(" "), Toks[3].getText());
  554   ASSERT_EQ(tok::backslash_command, Toks[4].getKind());
  555   ASSERT_EQ(StringRef("Bar"), getCommandName(Toks[4]));
  557   ASSERT_EQ(tok::text,         Toks[5].getKind());
  558   ASSERT_EQ(StringRef(" Baz"), Toks[5].getText());
  560   ASSERT_EQ(tok::newline,     Toks[6].getKind());
  562   ASSERT_EQ(tok::text,      Toks[7].getKind());
  563   ASSERT_EQ(StringRef(" "), Toks[7].getText());
  565   ASSERT_EQ(tok::backslash_command, Toks[8].getKind());
  566   ASSERT_EQ(StringRef("Blech"), getCommandName(Toks[8]));
  568   ASSERT_EQ(tok::text,                Toks[9].getKind());
  569   ASSERT_EQ(StringRef(" quux=corge"), Toks[9].getText());
  571   ASSERT_EQ(tok::newline,     Toks[10].getKind());