Lines Matching refs:Comment
12 #include "clang/AST/Comment.h"
24 std::pair<RawComment::CommentKind, bool> getCommentKind(StringRef Comment,
27 if ((Comment.size() < MinCommentLength) || Comment[0] != '/')
31 if (Comment[1] == '/') {
32 if (Comment.size() < 3)
35 if (Comment[2] == '/')
37 else if (Comment[2] == '!')
42 assert(Comment.size() >= 4);
44 // Comment lexer does not understand escapes in comment markers, so pretend
46 if (Comment[1] != '*' ||
47 Comment[Comment.size() - 2] != '*' ||
48 Comment[Comment.size() - 1] != '/')
51 if (Comment[2] == '*')
53 else if (Comment[2] == '!')
58 const bool TrailingComment = (Comment.size() > 3) && (Comment[3] == '<');
62 bool mergedCommentIsTrailingComment(StringRef Comment) {
63 return (Comment.size() > 3) && (Comment[3] == '<');