Browse Source

Removed duplicate preprocessed entity add in the new parser.

pull/240/head
triton 12 years ago
parent
commit
5a449eaafb
  1. 3
      src/CppParser/Parser.cpp

3
src/CppParser/Parser.cpp

@ -2098,7 +2098,6 @@ PreprocessedEntity* Parser::WalkPreprocessedEntity(
auto Definition = new MacroDefinition(); auto Definition = new MacroDefinition();
Entity = Definition; Entity = Definition;
Definition->_Namespace = GetTranslationUnit(MD->getLocation(), NULL);
Definition->Name = II->getName().trim(); Definition->Name = II->getName().trim();
Definition->Expression = Expression.trim(); Definition->Expression = Expression.trim();
} }
@ -2119,8 +2118,6 @@ PreprocessedEntity* Parser::WalkPreprocessedEntity(
Decl->PreprocessedEntities.push_back(Entity); Decl->PreprocessedEntities.push_back(Entity);
} }
Decl->PreprocessedEntities.push_back(Entity);
return Entity; return Entity;
} }

Loading…
Cancel
Save