src: improved cache implementation

* use const ref in cache
* improved performance of FilePath caching in FileRegister
This commit is contained in:
mlangkabel
2017-12-21 13:35:41 +01:00
parent 88d90bde8f
commit 1a9d736f28
7 changed files with 68 additions and 21 deletions
+3 -3
View File
@@ -4,10 +4,10 @@
#include <clang/AST/Decl.h>
#include "data/name/NameHierarchy.h"
#include "utility/Cache.h"
#include "utility/UnorderedCache.h"
typedef Cache<const clang::NamedDecl*, NameHierarchy> DeclNameCache;
typedef Cache<const clang::Type*, NameHierarchy> TypeNameCache;
typedef UnorderedCache<const clang::NamedDecl*, NameHierarchy> DeclNameCache;
typedef UnorderedCache<const clang::Type*, NameHierarchy> TypeNameCache;
class CxxContext
{