Home | History | Annotate | Download | only in Tooling

Lines Matching refs:Comment

15 struct Comment {
16 Comment(const std::string &Message, unsigned Line, unsigned Col)
24 typedef std::vector<Comment> CommentList;
47 EXPECT_TRUE(!Invalid) << "Invalid line number on comment " << C;
50 EXPECT_TRUE(!Invalid) << "Invalid column number on comment " << C;
52 Comments.push_back(Comment(C, CLine, CCol));
102 EXPECT_TRUE(Current == End) << "Unexpected comment \""
109 EXPECT_TRUE(Current != End) << "Comment " << Message << " not found";
112 const Comment &C = *Current;
114 << "Expected comment \"" << Message
116 << "\nActual comment \"" << C.Message
138 "class X {}; int main() { /* comment */ return 0; }"));
140 Verifier.Match("/* comment */", 1, 26);
146 "class X {}; // comment 1\n"
148 " // comment 2\n"
152 Verifier.Match("// comment 1", 1, 13);
153 Verifier.Match("// comment 2", 3, 3);
160 "// ignored comment\n"
162 "// visible comment\n"));
164 Verifier.Match("// visible comment", 4, 1);