Browse Source

CppParser: fix warning about RawCommentKind

Fix the following warning by renaming RawComment::RawCommentKind to
Kind.

In file included from ../../../src/CppParser/AST.cpp:8:0:
../../../src/CppParser/AST.h:780:20: warning: declaration of ‘CppSharp::CppParser::AST::RawCommentKind CppSharp::CppParser::AST::RawComment::RawCommentKind’ [-fpermissive]
     RawCommentKind RawCommentKind;
                    ^
../../../src/CppParser/AST.h:765:13: warning: changes meaning of ‘RawCommentKind’ from ‘enum class CppSharp::CppParser::AST::RawCommentKind’ [-fpermissive]
 enum struct RawCommentKind
             ^

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
pull/262/head
Tomi Valkeinen 11 years ago
parent
commit
7b8902e023
  1. 2
      src/Core/Parser/ASTConverter.cs
  2. 2
      src/CppParser/AST.h
  3. 2
      src/CppParser/Comments.cpp

2
src/Core/Parser/ASTConverter.cs

@ -657,7 +657,7 @@ namespace CppSharp @@ -657,7 +657,7 @@ namespace CppSharp
{
var _rawComment = new AST.RawComment
{
Kind = ConvertRawCommentKind(rawComment.RawCommentKind),
Kind = ConvertRawCommentKind(rawComment.Kind),
BriefText = rawComment.BriefText,
Text = rawComment.Text,
};

2
src/CppParser/AST.h

@ -777,7 +777,7 @@ enum struct RawCommentKind @@ -777,7 +777,7 @@ enum struct RawCommentKind
struct CS_API RawComment
{
RawComment();
RawCommentKind RawCommentKind;
RawCommentKind Kind;
STRING(Text)
STRING(BriefText)
FullComment* FullComment;

2
src/CppParser/Comments.cpp

@ -40,7 +40,7 @@ RawComment* Parser::WalkRawComment(const clang::RawComment* RC) @@ -40,7 +40,7 @@ RawComment* Parser::WalkRawComment(const clang::RawComment* RC)
auto &SM = C->getSourceManager();
auto Comment = new RawComment();
Comment->RawCommentKind = ConvertRawCommentKind(RC->getKind());
Comment->Kind = ConvertRawCommentKind(RC->getKind());
Comment->Text = RC->getRawText(SM);
Comment->BriefText = RC->getBriefText(*AST);

Loading…
Cancel
Save