Lines Matching full:comment
11 #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] == '<');
102 /// Returns whether `K` is an ordinary comment kind.
113 // Extract raw comment text, if possible.
119 // Guess comment kind.
123 // Guess whether an ordinary comment is trailing.
165 // The comment can't begin in one file and end in another.
288 // If this is the first Doxygen comment, save it (because there isn't
392 // A column number of the first non-whitespace token in the comment text.
398 // Record the line number of the last processed comment line.
400 // the end-comment marker, e.g.:
401 // /** This is a multi-line comment block.
404 // token and recorded a comment line. If we see another newline token on the
408 // Processes one line of the comment and adds it to the result.
453 // Get the beginning location of the adjusted comment line.
460 // Get the ending location of the comment line.