Introduce four new code-completion hooks for C++:
- after "using", show anything that can be a nested-name-specifier.
- after "using namespace", show any visible namespaces or namespace aliases
- after "namespace", show any namespace definitions in the current scope
- after "namespace identifier = ", show any visible namespaces or
namespace aliases
llvm-svn: 82251
This commit is contained in:
@@ -72,3 +72,33 @@ void Sema::CodeCompleteQualifiedId(Scope *S, const CXXScopeSpec &SS,
|
||||
(NestedNameSpecifier *)SS.getScopeRep(),
|
||||
EnteringContext);
|
||||
}
|
||||
|
||||
void Sema::CodeCompleteUsing(Scope *S) {
|
||||
if (!CodeCompleter)
|
||||
return;
|
||||
|
||||
CodeCompleter->CodeCompleteUsing(S);
|
||||
}
|
||||
|
||||
void Sema::CodeCompleteUsingDirective(Scope *S) {
|
||||
if (!CodeCompleter)
|
||||
return;
|
||||
|
||||
CodeCompleter->CodeCompleteUsingDirective(S);
|
||||
}
|
||||
|
||||
void Sema::CodeCompleteNamespaceDecl(Scope *S) {
|
||||
if (!CodeCompleter)
|
||||
return;
|
||||
|
||||
CodeCompleter->CodeCompleteNamespaceDecl(S);
|
||||
}
|
||||
|
||||
void Sema::CodeCompleteNamespaceAliasDecl(Scope *S) {
|
||||
if (!CodeCompleter)
|
||||
return;
|
||||
|
||||
CodeCompleter->CodeCompleteNamespaceAliasDecl(S);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user