diff --git a/src/CppParser/AST.cpp b/src/CppParser/AST.cpp index 0d635d5b..36fd629c 100644 --- a/src/CppParser/AST.cpp +++ b/src/CppParser/AST.cpp @@ -557,7 +557,7 @@ Namespace::Namespace() PreprocessedEntity::PreprocessedEntity() : Declaration(DeclarationKind::PreprocessedEntity), - Location(MacroLocation::Unknown) {} + MacroLocation(MacroLocation::Unknown) {} MacroDefinition::MacroDefinition() { Kind = DeclarationKind::MacroDefinition; } diff --git a/src/CppParser/AST.h b/src/CppParser/AST.h index 142df7fe..ccdae25e 100644 --- a/src/CppParser/AST.h +++ b/src/CppParser/AST.h @@ -707,7 +707,7 @@ enum struct MacroLocation struct CS_API PreprocessedEntity : public Declaration { PreprocessedEntity(); - MacroLocation Location; + MacroLocation MacroLocation; }; struct CS_API MacroDefinition : public PreprocessedEntity diff --git a/src/CppParser/Parser.cpp b/src/CppParser/Parser.cpp index b4832d22..a2372769 100644 --- a/src/CppParser/Parser.cpp +++ b/src/CppParser/Parser.cpp @@ -2389,8 +2389,8 @@ void Parser::HandlePreprocessedEntities(Declaration* Decl, auto Entity = WalkPreprocessedEntity(Decl, PPEntity); if (!Entity) continue; - if (Entity->Location == MacroLocation::Unknown) - Entity->Location = macroLocation; + if (Entity->MacroLocation == MacroLocation::Unknown) + Entity->MacroLocation = macroLocation; } }