Lines Matching refs:Comment
26 std::pair<RawComment::CommentKind, bool> getCommentKind(StringRef Comment, in getCommentKind() argument
29 if ((Comment.size() < MinCommentLength) || Comment[0] != '/') in getCommentKind()
33 if (Comment[1] == '/') { in getCommentKind()
34 if (Comment.size() < 3) in getCommentKind()
37 if (Comment[2] == '/') in getCommentKind()
39 else if (Comment[2] == '!') in getCommentKind()
44 assert(Comment.size() >= 4); in getCommentKind()
48 if (Comment[1] != '*' || in getCommentKind()
49 Comment[Comment.size() - 2] != '*' || in getCommentKind()
50 Comment[Comment.size() - 1] != '/') in getCommentKind()
53 if (Comment[2] == '*') in getCommentKind()
55 else if (Comment[2] == '!') in getCommentKind()
60 const bool TrailingComment = (Comment.size() > 3) && (Comment[3] == '<'); in getCommentKind()
64 bool mergedCommentIsTrailingComment(StringRef Comment) { in mergedCommentIsTrailingComment() argument
65 return (Comment.size() > 3) && (Comment[3] == '<'); in mergedCommentIsTrailingComment()