Skip to content

Commit

Permalink
#5977: DeclarationManager treats decl names case-insensitively during…
Browse files Browse the repository at this point in the history
… lookup
  • Loading branch information
codereader committed Jul 2, 2022
1 parent 3250f2b commit f30807c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions include/ideclmanager.h
Expand Up @@ -64,8 +64,6 @@ class IDeclaration
virtual void setParseStamp(std::size_t parseStamp) = 0;
};

using NamedDeclarations = std::map<std::string, IDeclaration::Ptr>;

// Factory interface being able to create a single declaration type
class IDeclarationCreator
{
Expand Down
4 changes: 4 additions & 0 deletions radiantcore/decl/DeclarationManager.h
Expand Up @@ -6,6 +6,7 @@
#include <set>
#include <vector>
#include <memory>
#include "string/string.h"

#include "DeclarationFile.h"

Expand All @@ -18,6 +19,9 @@ class DeclarationManager :
public IDeclarationManager
{
private:
// Declaration names are compared case-insensitively
using NamedDeclarations = std::map<std::string, IDeclaration::Ptr, string::ILess>;

std::map<std::string, IDeclarationCreator::Ptr> _creatorsByTypename;
std::map<Type, IDeclarationCreator::Ptr> _creatorsByType;
std::recursive_mutex _creatorLock;
Expand Down

0 comments on commit f30807c

Please sign in to comment.