Browse Source

Added HandlePreprocessedEntities call for all entities that doesn't contain yet any preprocessed entity.

pull/13/merge
marcos henrich 12 years ago committed by triton
parent
commit
d418ec2e23
  1. 8
      src/Parser/Parser.cpp

8
src/Parser/Parser.cpp

@ -1804,6 +1804,14 @@ CppSharp::AST::Declaration^ Parser::WalkDeclaration(clang::Decl* D,
if (Decl) if (Decl)
{ {
if (Decl->PreprocessedEntities->Count == 0)
{
auto startLoc = GetDeclStartLocation(C.get(), D);
auto endLoc = D->getLocEnd();
auto range = clang::SourceRange(startLoc, endLoc);
HandlePreprocessedEntities(Decl, range);
}
HandleComments(D, Decl); HandleComments(D, Decl);
if (const ValueDecl *VD = dyn_cast_or_null<ValueDecl>(D)) if (const ValueDecl *VD = dyn_cast_or_null<ValueDecl>(D))

Loading…
Cancel
Save