зеркало из https://github.com/microsoft/clang-1.git
Change the StringSet used by CalculateHiddenNames() to use a BumpPtrAllocator.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118372 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
7a054b1a2e
Коммит
c198f6170f
|
@ -1611,11 +1611,11 @@ namespace {
|
|||
|
||||
/// \brief Helper function that computes which global names are hidden by the
|
||||
/// local code-completion results.
|
||||
void CalculateHiddenNames(const CodeCompletionContext &Context,
|
||||
CodeCompletionResult *Results,
|
||||
unsigned NumResults,
|
||||
ASTContext &Ctx,
|
||||
llvm::StringSet<> &HiddenNames) {
|
||||
static void CalculateHiddenNames(const CodeCompletionContext &Context,
|
||||
CodeCompletionResult *Results,
|
||||
unsigned NumResults,
|
||||
ASTContext &Ctx,
|
||||
llvm::StringSet<llvm::BumpPtrAllocator> &HiddenNames){
|
||||
bool OnlyTagNames = false;
|
||||
switch (Context.getKind()) {
|
||||
case CodeCompletionContext::CCC_Recovery:
|
||||
|
@ -1698,7 +1698,7 @@ void AugmentedCodeCompleteConsumer::ProcessCodeCompleteResults(Sema &S,
|
|||
: (1 << (Context.getKind() - 1)));
|
||||
|
||||
// Contains the set of names that are hidden by "local" completion results.
|
||||
llvm::StringSet<> HiddenNames;
|
||||
llvm::StringSet<llvm::BumpPtrAllocator> HiddenNames;
|
||||
llvm::SmallVector<CodeCompletionString *, 4> StringsToDestroy;
|
||||
typedef CodeCompletionResult Result;
|
||||
llvm::SmallVector<Result, 8> AllResults;
|
||||
|
|
Загрузка…
Ссылка в новой задаче