@@ -826,7 +826,7 @@ void SymbolDatabase::createSymbolDatabaseNeedInitialization()
826826 for (std::list<Scope>::iterator it = scopeList.begin (); it != scopeList.end (); ++it) {
827827 Scope *scope = &(*it);
828828 if (scope->definedType )
829- scope->definedType ->needInitialization = Type::True;
829+ scope->definedType ->needInitialization = Type::NeedInitialization:: True;
830830 }
831831 } else {
832832 // For C++, it is more difficult: Determine if user defined type needs initialization...
@@ -844,7 +844,7 @@ void SymbolDatabase::createSymbolDatabaseNeedInitialization()
844844 scope->definedType = &mBlankTypes .back ();
845845 }
846846
847- if (scope->isClassOrStruct () && scope->definedType ->needInitialization == Type::Unknown) {
847+ if (scope->isClassOrStruct () && scope->definedType ->needInitialization == Type::NeedInitialization:: Unknown) {
848848 // check for default constructor
849849 bool hasDefaultConstructor = false ;
850850
@@ -870,7 +870,7 @@ void SymbolDatabase::createSymbolDatabaseNeedInitialization()
870870 // We assume the default constructor initializes everything.
871871 // Another check will figure out if the constructor actually initializes everything.
872872 if (hasDefaultConstructor)
873- scope->definedType ->needInitialization = Type::False;
873+ scope->definedType ->needInitialization = Type::NeedInitialization:: False;
874874
875875 // check each member variable to see if it needs initialization
876876 else {
@@ -882,9 +882,9 @@ void SymbolDatabase::createSymbolDatabaseNeedInitialization()
882882 if (var->isClass ()) {
883883 if (var->type ()) {
884884 // does this type need initialization?
885- if (var->type ()->needInitialization == Type::True)
885+ if (var->type ()->needInitialization == Type::NeedInitialization:: True)
886886 needInitialization = true ;
887- else if (var->type ()->needInitialization == Type::Unknown) {
887+ else if (var->type ()->needInitialization == Type::NeedInitialization:: Unknown) {
888888 if (!(var->valueType () && var->valueType ()->type == ValueType::CONTAINER))
889889 unknown = true ;
890890 }
@@ -894,16 +894,16 @@ void SymbolDatabase::createSymbolDatabaseNeedInitialization()
894894 }
895895
896896 if (needInitialization)
897- scope->definedType ->needInitialization = Type::True;
897+ scope->definedType ->needInitialization = Type::NeedInitialization:: True;
898898 else if (!unknown)
899- scope->definedType ->needInitialization = Type::False;
899+ scope->definedType ->needInitialization = Type::NeedInitialization:: False;
900900 else {
901- if (scope->definedType ->needInitialization == Type::Unknown)
901+ if (scope->definedType ->needInitialization == Type::NeedInitialization:: Unknown)
902902 unknowns++;
903903 }
904904 }
905- } else if (scope->type == Scope::eUnion && scope->definedType ->needInitialization == Type::Unknown)
906- scope->definedType ->needInitialization = Type::True;
905+ } else if (scope->type == Scope::eUnion && scope->definedType ->needInitialization == Type::NeedInitialization:: Unknown)
906+ scope->definedType ->needInitialization = Type::NeedInitialization:: True;
907907 }
908908
909909 retry++;
@@ -914,7 +914,7 @@ void SymbolDatabase::createSymbolDatabaseNeedInitialization()
914914 for (std::list<Scope>::iterator it = scopeList.begin (); it != scopeList.end (); ++it) {
915915 const Scope *scope = &(*it);
916916
917- if (scope->isClassOrStruct () && scope->definedType ->needInitialization == Type::Unknown)
917+ if (scope->isClassOrStruct () && scope->definedType ->needInitialization == Type::NeedInitialization:: Unknown)
918918 debugMessage (scope->classDef , " SymbolDatabase::SymbolDatabase couldn't resolve all user defined types." );
919919 }
920920 }
@@ -2919,9 +2919,9 @@ void SymbolDatabase::printOut(const char *title) const
29192919 << type->enclosingScope ->className ;
29202920 }
29212921 std::cout << std::endl;
2922- std::cout << " needInitialization: " << (type->needInitialization == Type::Unknown ? " Unknown" :
2923- type->needInitialization == Type::True ? " True" :
2924- type->needInitialization == Type::False ? " False" :
2922+ std::cout << " needInitialization: " << (type->needInitialization == Type::NeedInitialization:: Unknown ? " Unknown" :
2923+ type->needInitialization == Type::NeedInitialization:: True ? " True" :
2924+ type->needInitialization == Type::NeedInitialization:: False ? " False" :
29252925 " Invalid" ) << std::endl;
29262926
29272927 std::cout << " derivedFrom[" << type->derivedFrom .size () << " ] = (" ;
0 commit comments