diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-02-01 22:57:45 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-02-01 22:57:45 +0000 |
commit | dae687575010c9c49a4b552f5eef82cd6279d9ac (patch) | |
tree | 761782a397e30df66392dd5c7218c412116d0b21 /include/clang/Frontend/ASTUnit.h | |
parent | daef9cc7e379c83e272f50de2fb3b7ab2e7e42db (diff) |
Create a special allocator class for code completion, so that all of
the string copying goes through a single place that can have
associated state.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124698 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend/ASTUnit.h')
-rw-r--r-- | include/clang/Frontend/ASTUnit.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/clang/Frontend/ASTUnit.h b/include/clang/Frontend/ASTUnit.h index 6ee3e85fef..b1eb0da248 100644 --- a/include/clang/Frontend/ASTUnit.h +++ b/include/clang/Frontend/ASTUnit.h @@ -288,11 +288,8 @@ public: } private: - /// \brief Allocator used to store temporary code completion results. - llvm::BumpPtrAllocator CompletionAllocator; - /// \brief Allocator used to store cached code completions. - llvm::BumpPtrAllocator CachedCompletionAllocator; + CodeCompletionAllocator CachedCompletionAllocator; /// \brief The set of cached code-completion results. std::vector<CachedCodeCompletionResult> CachedCompletionResults; |