/// (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:
}
void Sema::CodeCompleteNaturalLanguage() {
- // FIXME: Use a dedicated completion context for this!
HandleCodeCompleteResults(this, CodeCompleter,
- CodeCompletionContext::CCC_Other,
+ CodeCompletionContext::CCC_NaturalLanguage,
0, 0);
}