aboutsummaryrefslogtreecommitdiff
path: root/include/clang
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-08-27 17:35:51 +0000
committerDouglas Gregor <dgregor@apple.com>2010-08-27 17:35:51 +0000
commit1a480c403a3b141ab89c9c59cf7b681102a1bfab (patch)
tree979051a5a55b5d86e3ea48138a4a3fd2169b175d /include/clang
parent06b6c589a5fff8e5476fe2b4cd6a660af71bfddd (diff)
Suggest "const" and "volatile" code completions after a function
declarator, the very definition of "low-hanging fruit". git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112274 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang')
-rw-r--r--include/clang/Sema/CodeCompleteConsumer.h4
-rw-r--r--include/clang/Sema/Sema.h1
2 files changed, 4 insertions, 1 deletions
diff --git a/include/clang/Sema/CodeCompleteConsumer.h b/include/clang/Sema/CodeCompleteConsumer.h
index 28210576e0..edc6331af0 100644
--- a/include/clang/Sema/CodeCompleteConsumer.h
+++ b/include/clang/Sema/CodeCompleteConsumer.h
@@ -201,7 +201,9 @@ public:
/// unless they come from an appropriate natural-language dictionary.
CCC_NaturalLanguage,
/// \brief Code completion for a selector, as in an @selector expression.
- CCC_SelectorName
+ CCC_SelectorName,
+ /// \brief Code completion within a type-qualifier list.
+ CCC_TypeQualifiers
};
private:
diff --git a/include/clang/Sema/Sema.h b/include/clang/Sema/Sema.h
index 43f99ae284..974381668b 100644
--- a/include/clang/Sema/Sema.h
+++ b/include/clang/Sema/Sema.h
@@ -4332,6 +4332,7 @@ public:
SourceLocation OpLoc,
bool IsArrow);
virtual void CodeCompleteTag(Scope *S, unsigned TagSpec);
+ virtual void CodeCompleteTypeQualifiers(DeclSpec &DS);
virtual void CodeCompleteCase(Scope *S);
virtual void CodeCompleteCall(Scope *S, Expr *Fn,
Expr **Args, unsigned NumArgs);