summaryrefslogtreecommitdiffstats
path: root/include/clang/Sema/CodeCompleteConsumer.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-08-25 17:10:00 +0000
committerDouglas Gregor <dgregor@apple.com>2010-08-25 17:10:00 +0000
commitaf1c6b532e6e1e944db987f29062e5efce71a573 (patch)
treeb657b5973114141fe9973517b0e6078fe90d890a /include/clang/Sema/CodeCompleteConsumer.h
parent55817afdf9d453a443262a733f6caf6692dca118 (diff)
Add a code-completion context for "natural language" completions, so
that ASTUnit knows not to try to provide completions there. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112057 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Sema/CodeCompleteConsumer.h')
-rw-r--r--include/clang/Sema/CodeCompleteConsumer.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/clang/Sema/CodeCompleteConsumer.h b/include/clang/Sema/CodeCompleteConsumer.h
index 3bb9df34bc..13d16e357d 100644
--- a/include/clang/Sema/CodeCompleteConsumer.h
+++ b/include/clang/Sema/CodeCompleteConsumer.h
@@ -181,7 +181,13 @@ public:
/// (without any arguments, in the case of a function-like macro).
CCC_MacroNameUse,
/// \brief Code completion occurred within a preprocessor expression.
- CCC_PreprocessorExpression
+ CCC_PreprocessorExpression,
+ /// \brief Code completion occurred in a context where natural language is
+ /// expected, e.g., a comment or string literal.
+ ///
+ /// This context usually implies that no completions should be added,
+ /// unless they come from an appropriate natural-language dictionary.
+ CCC_NaturalLanguage
};
private: