Lines Matching refs:Comment
25 std::pair<RawComment::CommentKind, bool> getCommentKind(StringRef Comment, in getCommentKind() argument
28 if ((Comment.size() < MinCommentLength) || Comment[0] != '/') in getCommentKind()
32 if (Comment[1] == '/') { in getCommentKind()
33 if (Comment.size() < 3) in getCommentKind()
36 if (Comment[2] == '/') in getCommentKind()
38 else if (Comment[2] == '!') in getCommentKind()
43 assert(Comment.size() >= 4); in getCommentKind()
47 if (Comment[1] != '*' || in getCommentKind()
48 Comment[Comment.size() - 2] != '*' || in getCommentKind()
49 Comment[Comment.size() - 1] != '/') in getCommentKind()
52 if (Comment[2] == '*') in getCommentKind()
54 else if (Comment[2] == '!') in getCommentKind()
59 const bool TrailingComment = (Comment.size() > 3) && (Comment[3] == '<'); in getCommentKind()
63 bool mergedCommentIsTrailingComment(StringRef Comment) { in mergedCommentIsTrailingComment() argument
64 return (Comment.size() > 3) && (Comment[3] == '<'); in mergedCommentIsTrailingComment()