Home | History | Annotate | Download | only in AST

Lines Matching refs:Comment

12 #include "clang/AST/Comment.h"
23 /// Get comment kind and bool describing if it is a trailing comment.
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
45 // that this is not a comment.
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] == '<');
73 // Extract raw comment text, if possible.
80 // Guess comment kind.
128 // The comment can't begin in one file and end in another.
239 // If this is the first Doxygen comment, save it (because there isn't