summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/RawCommentList.cpp
diff options
context:
space:
mode:
authorAbramo Bagnara <abramo.bagnara@gmail.com>2012-07-04 07:30:26 +0000
committerAbramo Bagnara <abramo.bagnara@gmail.com>2012-07-04 07:30:26 +0000
commite06a8887d8ee8831619c558a459f1f17dbe8e4d0 (patch)
tree2de7eba009eb42494f671185a3ef51401a3f98ce /clang/lib/AST/RawCommentList.cpp
parenta3b11bdbeaca9b9ee135e0596d57e62abf6e165c (diff)
downloadbcm5719-llvm-e06a8887d8ee8831619c558a459f1f17dbe8e4d0.tar.gz
bcm5719-llvm-e06a8887d8ee8831619c558a459f1f17dbe8e4d0.zip
Renamed RawComment kinds to avoid name clash.
llvm-svn: 159706
Diffstat (limited to 'clang/lib/AST/RawCommentList.cpp')
-rw-r--r--clang/lib/AST/RawCommentList.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/clang/lib/AST/RawCommentList.cpp b/clang/lib/AST/RawCommentList.cpp
index e7b86dffb28..791215103f0 100644
--- a/clang/lib/AST/RawCommentList.cpp
+++ b/clang/lib/AST/RawCommentList.cpp
@@ -19,19 +19,19 @@ namespace {
/// Get comment kind and bool describing if it is a trailing comment.
std::pair<RawComment::CommentKind, bool> getCommentKind(StringRef Comment) {
if (Comment.size() < 3 || Comment[0] != '/')
- return std::make_pair(RawComment::CK_Invalid, false);
+ return std::make_pair(RawComment::RCK_Invalid, false);
RawComment::CommentKind K;
if (Comment[1] == '/') {
if (Comment.size() < 3)
- return std::make_pair(RawComment::CK_OrdinaryBCPL, false);
+ return std::make_pair(RawComment::RCK_OrdinaryBCPL, false);
if (Comment[2] == '/')
- K = RawComment::CK_BCPLSlash;
+ K = RawComment::RCK_BCPLSlash;
else if (Comment[2] == '!')
- K = RawComment::CK_BCPLExcl;
+ K = RawComment::RCK_BCPLExcl;
else
- return std::make_pair(RawComment::CK_OrdinaryBCPL, false);
+ return std::make_pair(RawComment::RCK_OrdinaryBCPL, false);
} else {
assert(Comment.size() >= 4);
@@ -40,14 +40,14 @@ std::pair<RawComment::CommentKind, bool> getCommentKind(StringRef Comment) {
if (Comment[1] != '*' ||
Comment[Comment.size() - 2] != '*' ||
Comment[Comment.size() - 1] != '/')
- return std::make_pair(RawComment::CK_Invalid, false);
+ return std::make_pair(RawComment::RCK_Invalid, false);
if (Comment[2] == '*')
- K = RawComment::CK_JavaDoc;
+ K = RawComment::RCK_JavaDoc;
else if (Comment[2] == '!')
- K = RawComment::CK_Qt;
+ K = RawComment::RCK_Qt;
else
- return std::make_pair(RawComment::CK_OrdinaryC, false);
+ return std::make_pair(RawComment::RCK_OrdinaryC, false);
}
const bool TrailingComment = (Comment.size() > 3) && (Comment[3] == '<');
return std::make_pair(K, TrailingComment);
@@ -65,7 +65,7 @@ RawComment::RawComment(const SourceManager &SourceMgr, SourceRange SR,
BeginLineValid(false), EndLineValid(false) {
// Extract raw comment text, if possible.
if (SR.getBegin() == SR.getEnd() || getRawText(SourceMgr).empty()) {
- Kind = CK_Invalid;
+ Kind = RCK_Invalid;
return;
}
@@ -78,7 +78,7 @@ RawComment::RawComment(const SourceManager &SourceMgr, SourceRange SR,
IsAlmostTrailingComment = RawText.startswith("//<") ||
RawText.startswith("/*<");
} else {
- Kind = CK_Merged;
+ Kind = RCK_Merged;
IsTrailingComment = mergedCommentIsTrailingComment(RawText);
}
}
OpenPOWER on IntegriCloud