Browse Source

Fixed compilation of comment blocks by using static_cast for casting instead of LLVM casts.

pull/503/merge
triton 10 years ago
parent
commit
51464010fd
  1. 6
      src/CppParser/Comments.cpp

6
src/CppParser/Comments.cpp

@ -111,7 +111,7 @@ static Comment* ConvertCommentBlock(clang::comments::Comment* C) @@ -111,7 +111,7 @@ static Comment* ConvertCommentBlock(clang::comments::Comment* C)
for (auto I = CK->child_begin(), E = CK->child_end(); I != E; ++I)
{
auto Content = ConvertCommentBlock(*I);
FC->Blocks.push_back(cast<BlockContentComment>(Content));
FC->Blocks.push_back(static_cast<BlockContentComment*>(Content));
}
break;
}
@ -154,7 +154,7 @@ static Comment* ConvertCommentBlock(clang::comments::Comment* C) @@ -154,7 +154,7 @@ static Comment* ConvertCommentBlock(clang::comments::Comment* C)
for (auto I = CK->child_begin(), E = CK->child_end(); I != E; ++I)
{
auto Line = ConvertCommentBlock(*I);
VB->Lines.push_back(cast<VerbatimBlockLineComment>(Line));
VB->Lines.push_back(static_cast<VerbatimBlockLineComment*>(Line));
}
break;
}
@ -174,7 +174,7 @@ static Comment* ConvertCommentBlock(clang::comments::Comment* C) @@ -174,7 +174,7 @@ static Comment* ConvertCommentBlock(clang::comments::Comment* C)
for (auto I = CK->child_begin(), E = CK->child_end(); I != E; ++I)
{
auto Content = ConvertCommentBlock(*I);
PC->Content.push_back(cast<InlineContentComment>(Content));
PC->Content.push_back(static_cast<InlineContentComment*>(Content));
}
PC->IsWhitespace = CK->isWhitespace();
break;

Loading…
Cancel
Save