reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/include/clang/Sema/CodeCompleteConsumer.h
  430 llvm::StringRef getCompletionKindString(CodeCompletionContext::Kind Kind);
  940                                          const CodeCompletionContext &CCContext,
  946                                          const CodeCompletionContext &CCContext,
  960       bool IncludeBriefComments, const CodeCompletionContext &CCContext,
  965       bool IncludeBriefComments, const CodeCompletionContext &CCContext,
 1127                                           CodeCompletionContext Context,
 1189   void ProcessCodeCompleteResults(Sema &S, CodeCompletionContext Context,
tools/clang/lib/Frontend/ASTUnit.cpp
  302       Contexts |= (1LL << CodeCompletionContext::CCC_TopLevel)
  303                |  (1LL << CodeCompletionContext::CCC_ObjCIvarList)
  304                |  (1LL << CodeCompletionContext::CCC_ClassStructUnion)
  305                |  (1LL << CodeCompletionContext::CCC_Statement)
  306                |  (1LL << CodeCompletionContext::CCC_Type)
  307                |  (1LL << CodeCompletionContext::CCC_ParenthesizedExpression);
  311       Contexts |= (1LL << CodeCompletionContext::CCC_Expression);
  316       Contexts |= (1LL << CodeCompletionContext::CCC_ObjCMessageReceiver);
  322         Contexts |= (1LL << CodeCompletionContext::CCC_Expression);
  323       Contexts |= (1LL << CodeCompletionContext::CCC_ObjCInterfaceName);
  328       Contexts |= (1LL << CodeCompletionContext::CCC_EnumTag);
  335         Contexts |= (1LL << CodeCompletionContext::CCC_UnionTag);
  337         Contexts |= (1LL << CodeCompletionContext::CCC_ClassOrStructTag);
  345     Contexts = (1LL << CodeCompletionContext::CCC_Statement)
  346              | (1LL << CodeCompletionContext::CCC_Expression)
  347              | (1LL << CodeCompletionContext::CCC_ParenthesizedExpression)
  348              | (1LL << CodeCompletionContext::CCC_ObjCMessageReceiver);
  350     Contexts = (1LL << CodeCompletionContext::CCC_ObjCProtocolName);
  352     Contexts = (1LL << CodeCompletionContext::CCC_ObjCCategoryName);
  354     Contexts = (1LL << CodeCompletionContext::CCC_Namespace);
  383   CodeCompletionContext CCContext(CodeCompletionContext::CCC_TopLevel);
  383   CodeCompletionContext CCContext(CodeCompletionContext::CCC_TopLevel);
  430           = (1LL << CodeCompletionContext::CCC_TopLevel)
  431           | (1LL << CodeCompletionContext::CCC_ObjCIvarList)
  432           | (1LL << CodeCompletionContext::CCC_ClassStructUnion)
  433           | (1LL << CodeCompletionContext::CCC_Statement)
  434           | (1LL << CodeCompletionContext::CCC_Expression)
  435           | (1LL << CodeCompletionContext::CCC_ObjCMessageReceiver)
  436           | (1LL << CodeCompletionContext::CCC_EnumTag)
  437           | (1LL << CodeCompletionContext::CCC_UnionTag)
  438           | (1LL << CodeCompletionContext::CCC_ClassOrStructTag)
  439           | (1LL << CodeCompletionContext::CCC_Type)
  440           | (1LL << CodeCompletionContext::CCC_SymbolOrNewName)
  441           | (1LL << CodeCompletionContext::CCC_ParenthesizedExpression);
  445           NNSContexts |= (1LL << CodeCompletionContext::CCC_Namespace);
  478         = (1LL << CodeCompletionContext::CCC_TopLevel)
  479         | (1LL << CodeCompletionContext::CCC_ObjCInterface)
  480         | (1LL << CodeCompletionContext::CCC_ObjCImplementation)
  481         | (1LL << CodeCompletionContext::CCC_ObjCIvarList)
  482         | (1LL << CodeCompletionContext::CCC_ClassStructUnion)
  483         | (1LL << CodeCompletionContext::CCC_Statement)
  484         | (1LL << CodeCompletionContext::CCC_Expression)
  485         | (1LL << CodeCompletionContext::CCC_ObjCMessageReceiver)
  486         | (1LL << CodeCompletionContext::CCC_MacroNameUse)
  487         | (1LL << CodeCompletionContext::CCC_PreprocessorExpression)
  488         | (1LL << CodeCompletionContext::CCC_ParenthesizedExpression)
  489         | (1LL << CodeCompletionContext::CCC_OtherWithMacros);
 1917         = (1LL << CodeCompletionContext::CCC_TopLevel)
 1918         | (1LL << CodeCompletionContext::CCC_ObjCInterface)
 1919         | (1LL << CodeCompletionContext::CCC_ObjCImplementation)
 1920         | (1LL << CodeCompletionContext::CCC_ObjCIvarList)
 1921         | (1LL << CodeCompletionContext::CCC_Statement)
 1922         | (1LL << CodeCompletionContext::CCC_Expression)
 1923         | (1LL << CodeCompletionContext::CCC_ObjCMessageReceiver)
 1924         | (1LL << CodeCompletionContext::CCC_DotMemberAccess)
 1925         | (1LL << CodeCompletionContext::CCC_ArrowMemberAccess)
 1926         | (1LL << CodeCompletionContext::CCC_ObjCPropertyAccess)
 1927         | (1LL << CodeCompletionContext::CCC_ObjCProtocolName)
 1928         | (1LL << CodeCompletionContext::CCC_ParenthesizedExpression)
 1929         | (1LL << CodeCompletionContext::CCC_Recovery);
 1932         NormalContexts |= (1LL << CodeCompletionContext::CCC_EnumTag)
 1933                        |  (1LL << CodeCompletionContext::CCC_UnionTag)
 1934                        |  (1LL << CodeCompletionContext::CCC_ClassOrStructTag);
 1937     void ProcessCodeCompleteResults(Sema &S, CodeCompletionContext Context,
 1962 static void CalculateHiddenNames(const CodeCompletionContext &Context,
 1969   case CodeCompletionContext::CCC_Recovery:
 1970   case CodeCompletionContext::CCC_TopLevel:
 1971   case CodeCompletionContext::CCC_ObjCInterface:
 1972   case CodeCompletionContext::CCC_ObjCImplementation:
 1973   case CodeCompletionContext::CCC_ObjCIvarList:
 1974   case CodeCompletionContext::CCC_ClassStructUnion:
 1975   case CodeCompletionContext::CCC_Statement:
 1976   case CodeCompletionContext::CCC_Expression:
 1977   case CodeCompletionContext::CCC_ObjCMessageReceiver:
 1978   case CodeCompletionContext::CCC_DotMemberAccess:
 1979   case CodeCompletionContext::CCC_ArrowMemberAccess:
 1980   case CodeCompletionContext::CCC_ObjCPropertyAccess:
 1981   case CodeCompletionContext::CCC_Namespace:
 1982   case CodeCompletionContext::CCC_Type:
 1983   case CodeCompletionContext::CCC_Symbol:
 1984   case CodeCompletionContext::CCC_SymbolOrNewName:
 1985   case CodeCompletionContext::CCC_ParenthesizedExpression:
 1986   case CodeCompletionContext::CCC_ObjCInterfaceName:
 1989   case CodeCompletionContext::CCC_EnumTag:
 1990   case CodeCompletionContext::CCC_UnionTag:
 1991   case CodeCompletionContext::CCC_ClassOrStructTag:
 1995   case CodeCompletionContext::CCC_ObjCProtocolName:
 1996   case CodeCompletionContext::CCC_MacroName:
 1997   case CodeCompletionContext::CCC_MacroNameUse:
 1998   case CodeCompletionContext::CCC_PreprocessorExpression:
 1999   case CodeCompletionContext::CCC_PreprocessorDirective:
 2000   case CodeCompletionContext::CCC_NaturalLanguage:
 2001   case CodeCompletionContext::CCC_SelectorName:
 2002   case CodeCompletionContext::CCC_TypeQualifiers:
 2003   case CodeCompletionContext::CCC_Other:
 2004   case CodeCompletionContext::CCC_OtherWithMacros:
 2005   case CodeCompletionContext::CCC_ObjCInstanceMessage:
 2006   case CodeCompletionContext::CCC_ObjCClassMessage:
 2007   case CodeCompletionContext::CCC_ObjCCategoryName:
 2008   case CodeCompletionContext::CCC_IncludedFile:
 2009   case CodeCompletionContext::CCC_NewName:
 2047                                             CodeCompletionContext Context,
 2053       Context.getKind() == CodeCompletionContext::CCC_Recovery
 2111         Context.getKind() == CodeCompletionContext::CCC_MacroNameUse) {
tools/clang/lib/Sema/CodeCompleteConsumer.cpp
   90 StringRef clang::getCompletionKindString(CodeCompletionContext::Kind Kind) {
   91   using CCKind = CodeCompletionContext::Kind;
  537     Sema &SemaRef, CodeCompletionContext Context, CodeCompletionResult *Results,
tools/clang/lib/Sema/SemaCodeComplete.cpp
  184   CodeCompletionContext CompletionContext;
  197                          const CodeCompletionContext &CompletionContext,
  206     case CodeCompletionContext::CCC_Expression:
  207     case CodeCompletionContext::CCC_ObjCMessageReceiver:
  208     case CodeCompletionContext::CCC_ParenthesizedExpression:
  209     case CodeCompletionContext::CCC_Statement:
  210     case CodeCompletionContext::CCC_Recovery:
  266   const CodeCompletionContext &getCompletionContext() const {
  975       !(CompletionContext.getKind() == CodeCompletionContext::CCC_Statement ||
  977             CodeCompletionContext::CCC_ObjCMessageReceiver ||
  979             CodeCompletionContext::CCC_ParenthesizedExpression))
 1937                                const CodeCompletionContext &CCContext,
 2104         AddOverrideResults(Results, CodeCompletionContext::CCC_ClassStructUnion,
 3196     Sema &S, const CodeCompletionContext &CCContext,
 3256     ASTContext &Ctx, Preprocessor &PP, const CodeCompletionContext &CCContext,
 3313     bool IncludeBriefComments, const CodeCompletionContext &CCContext,
 3332     bool IncludeBriefComments, const CodeCompletionContext &CCContext,
 3877                                       CodeCompletionContext Context,
 3884 static CodeCompletionContext
 3888     return CodeCompletionContext::CCC_TopLevel;
 3891     return CodeCompletionContext::CCC_ClassStructUnion;
 3894     return CodeCompletionContext::CCC_ObjCInterface;
 3897     return CodeCompletionContext::CCC_ObjCImplementation;
 3900     return CodeCompletionContext::CCC_ObjCIvarList;
 3905       return CodeCompletionContext::CCC_TopLevel;
 3907       return CodeCompletionContext::CCC_ClassStructUnion;
 3908     return CodeCompletionContext::CCC_Other;
 3911     return CodeCompletionContext::CCC_Recovery;
 3916       return CodeCompletionContext::CCC_ParenthesizedExpression;
 3918       return CodeCompletionContext::CCC_Expression;
 3921     return CodeCompletionContext::CCC_Expression;
 3923     return CodeCompletionContext(CodeCompletionContext::CCC_Expression,
 3927     return CodeCompletionContext::CCC_Statement;
 3930     return CodeCompletionContext::CCC_Type;
 3933     return CodeCompletionContext::CCC_ParenthesizedExpression;
 3936     return CodeCompletionContext::CCC_Type;
 4013                         CodeCompletionContext::CCC_Other);
 4159           ? CodeCompletionContext::CCC_SymbolOrNewName
 4160           : CodeCompletionContext::CCC_NewName);
 4338               ? CodeCompletionContext::CCC_ParenthesizedExpression
 4339               : CodeCompletionContext::CCC_Expression,
 4477 AddObjCProperties(const CodeCompletionContext &CCContext,
 4708   enum CodeCompletionContext::Kind contextKind;
 4716     contextKind = CodeCompletionContext::CCC_ArrowMemberAccess;
 4720       contextKind = CodeCompletionContext::CCC_ObjCPropertyAccess;
 4722       contextKind = CodeCompletionContext::CCC_DotMemberAccess;
 4726   CodeCompletionContext CCContext(contextKind, ConvertedBaseType);
 4844   CodeCompletionContext CCContext(
 4845       CodeCompletionContext::CCC_ObjCPropertyAccess);
 4865   enum CodeCompletionContext::Kind ContextKind =
 4866       CodeCompletionContext::CCC_Other;
 4870     ContextKind = CodeCompletionContext::CCC_EnumTag;
 4875     ContextKind = CodeCompletionContext::CCC_UnionTag;
 4882     ContextKind = CodeCompletionContext::CCC_ClassOrStructTag;
 4928                         CodeCompletionContext::CCC_TypeQualifiers);
 4940                         CodeCompletionContext::CCC_TypeQualifiers);
 5025                         CodeCompletionContext::CCC_Expression);
 5339   CodeCompletionContext CC(CodeCompletionContext::CCC_Symbol, PreferredType);
 5339   CodeCompletionContext CC(CodeCompletionContext::CCC_Symbol, PreferredType);
 5417   CodeCompletionContext Context(CodeCompletionContext::CCC_SymbolOrNewName);
 5417   CodeCompletionContext Context(CodeCompletionContext::CCC_SymbolOrNewName);
 5449                         CodeCompletionContext::CCC_Namespace,
 5475                             ? CodeCompletionContext::CCC_Namespace
 5476                             : CodeCompletionContext::CCC_Other,
 5516                         CodeCompletionContext::CCC_Namespace,
 5533                         CodeCompletionContext::CCC_Type,
 5572                         CodeCompletionContext::CCC_Symbol);
 5723                         CodeCompletionContext::CCC_Other);
 5861                         CodeCompletionContext::CCC_Other);
 5998                         CodeCompletionContext::CCC_Other);
 6009                         CodeCompletionContext::CCC_Other);
 6021                         CodeCompletionContext::CCC_Other);
 6068                         CodeCompletionContext::CCC_Other);
 6293                         CodeCompletionContext::CCC_Other);
 6319                         CodeCompletionContext::CCC_Other);
 6335                         CodeCompletionContext::CCC_Type);
 6601       CodeCompletionContext::CCC_ObjCMessageReceiver,
 6813       CodeCompletionContext(CodeCompletionContext::CCC_ObjCClassMessage, T,
 6885       CodeCompletionContext(CodeCompletionContext::CCC_ObjCInstanceMessage,
 7028                         CodeCompletionContext::CCC_SelectorName);
 7090                         CodeCompletionContext::CCC_ObjCProtocolName);
 7116                         CodeCompletionContext::CCC_ObjCProtocolName);
 7154                         CodeCompletionContext::CCC_ObjCInterfaceName);
 7173                         CodeCompletionContext::CCC_ObjCInterfaceName);
 7197                         CodeCompletionContext::CCC_ObjCImplementation);
 7219                         CodeCompletionContext::CCC_ObjCCategoryName);
 7263                         CodeCompletionContext::CCC_ObjCCategoryName);
 7289   CodeCompletionContext CCContext(CodeCompletionContext::CCC_Other);
 7289   CodeCompletionContext CCContext(CodeCompletionContext::CCC_Other);
 7330                         CodeCompletionContext::CCC_Other);
 8185                               CodeCompletionContext::CCC_Other, nullptr, 0);
 8198                         CodeCompletionContext::CCC_Other);
 8346                         CodeCompletionContext::CCC_Other);
 8414                         CodeCompletionContext::CCC_PreprocessorDirective);
 8577                         IsDefinition ? CodeCompletionContext::CCC_MacroName
 8578                                      : CodeCompletionContext::CCC_MacroNameUse);
 8604                         CodeCompletionContext::CCC_PreprocessorExpression);
 8652                         CodeCompletionContext::CCC_IncludedFile);
 8770                             CodeCompletionContext::CCC_NaturalLanguage, nullptr,
 8777                         CodeCompletionContext::CCC_Other);
 8794                         CodeCompletionContext::CCC_Recovery);
tools/clang/tools/extra/clangd/CodeComplete.cpp
  135                      CodeCompletionContext::Kind CtxKind) {
  138   if (CtxKind == CodeCompletionContext::CCC_IncludedFile)
  255                         CodeCompletionContext::Kind ContextKind,
  545 getQueryScopes(CodeCompletionContext &CCContext, const Sema &CCSema,
  603 bool contextAllowsIndex(enum CodeCompletionContext::Kind K) {
  605   case CodeCompletionContext::CCC_TopLevel:
  606   case CodeCompletionContext::CCC_ObjCInterface:
  607   case CodeCompletionContext::CCC_ObjCImplementation:
  608   case CodeCompletionContext::CCC_ObjCIvarList:
  609   case CodeCompletionContext::CCC_ClassStructUnion:
  610   case CodeCompletionContext::CCC_Statement:
  611   case CodeCompletionContext::CCC_Expression:
  612   case CodeCompletionContext::CCC_ObjCMessageReceiver:
  613   case CodeCompletionContext::CCC_EnumTag:
  614   case CodeCompletionContext::CCC_UnionTag:
  615   case CodeCompletionContext::CCC_ClassOrStructTag:
  616   case CodeCompletionContext::CCC_ObjCProtocolName:
  617   case CodeCompletionContext::CCC_Namespace:
  618   case CodeCompletionContext::CCC_Type:
  619   case CodeCompletionContext::CCC_ParenthesizedExpression:
  620   case CodeCompletionContext::CCC_ObjCInterfaceName:
  621   case CodeCompletionContext::CCC_ObjCCategoryName:
  622   case CodeCompletionContext::CCC_Symbol:
  623   case CodeCompletionContext::CCC_SymbolOrNewName:
  625   case CodeCompletionContext::CCC_OtherWithMacros:
  626   case CodeCompletionContext::CCC_DotMemberAccess:
  627   case CodeCompletionContext::CCC_ArrowMemberAccess:
  628   case CodeCompletionContext::CCC_ObjCPropertyAccess:
  629   case CodeCompletionContext::CCC_MacroName:
  630   case CodeCompletionContext::CCC_MacroNameUse:
  631   case CodeCompletionContext::CCC_PreprocessorExpression:
  632   case CodeCompletionContext::CCC_PreprocessorDirective:
  633   case CodeCompletionContext::CCC_SelectorName:
  634   case CodeCompletionContext::CCC_TypeQualifiers:
  635   case CodeCompletionContext::CCC_ObjCInstanceMessage:
  636   case CodeCompletionContext::CCC_ObjCClassMessage:
  637   case CodeCompletionContext::CCC_IncludedFile:
  639   case CodeCompletionContext::CCC_Other: // Be conservative.
  640   case CodeCompletionContext::CCC_NaturalLanguage:
  641   case CodeCompletionContext::CCC_Recovery:
  642   case CodeCompletionContext::CCC_NewName:
  683         CCContext(CodeCompletionContext::CCC_Other), Opts(Opts),
  690   CodeCompletionContext CCContext;
  694   void ProcessCodeCompleteResults(class Sema &S, CodeCompletionContext Context,
  705     if (Context.getKind() == CodeCompletionContext::CCC_Recovery) {
 1128 bool allowIndex(CodeCompletionContext &CC) {
 1211   CodeCompletionContext::Kind CCContextKind = CodeCompletionContext::CCC_Other;
 1211   CodeCompletionContext::Kind CCContextKind = CodeCompletionContext::CCC_Other;
 1338     CCContextKind = CodeCompletionContext::CCC_Recovery;
tools/clang/tools/extra/clangd/CodeComplete.h
  218   CodeCompletionContext::Kind Context = CodeCompletionContext::CCC_Other;
  218   CodeCompletionContext::Kind Context = CodeCompletionContext::CCC_Other;
tools/clang/tools/extra/clangd/Quality.cpp
  409       (Context == CodeCompletionContext::CCC_DotMemberAccess ||
  410        Context == CodeCompletionContext::CCC_ArrowMemberAccess)) {
tools/clang/tools/extra/clangd/Quality.h
  127   CodeCompletionContext::Kind Context = CodeCompletionContext::CCC_Other;
  127   CodeCompletionContext::Kind Context = CodeCompletionContext::CCC_Other;
tools/clang/tools/extra/clangd/index/SymbolCollector.cpp
  592       *ASTCtx, *PP, CodeCompletionContext::CCC_Symbol, *CompletionAllocator,
tools/clang/tools/extra/clangd/unittests/QualityTests.cpp
  287   Instance.Context = CodeCompletionContext::CCC_DotMemberAccess;
tools/clang/tools/libclang/CIndexCodeCompletion.cpp
  285   enum clang::CodeCompletionContext::Kind ContextKind;
  386                                           enum CodeCompletionContext::Kind kind, 
  390     case CodeCompletionContext::CCC_OtherWithMacros: {
  396     case CodeCompletionContext::CCC_TopLevel:
  397     case CodeCompletionContext::CCC_ObjCIvarList:
  398     case CodeCompletionContext::CCC_ClassStructUnion:
  399     case CodeCompletionContext::CCC_Type: {
  411     case CodeCompletionContext::CCC_Statement: {
  424     case CodeCompletionContext::CCC_Expression: {
  437     case CodeCompletionContext::CCC_ObjCMessageReceiver: {
  452     case CodeCompletionContext::CCC_DotMemberAccess: {
  456     case CodeCompletionContext::CCC_ArrowMemberAccess: {
  460     case CodeCompletionContext::CCC_ObjCPropertyAccess: {
  464     case CodeCompletionContext::CCC_EnumTag: {
  469     case CodeCompletionContext::CCC_UnionTag: {
  474     case CodeCompletionContext::CCC_ClassOrStructTag: {
  480     case CodeCompletionContext::CCC_ObjCProtocolName: {
  484     case CodeCompletionContext::CCC_Namespace: {
  488     case CodeCompletionContext::CCC_SymbolOrNewName:
  489     case CodeCompletionContext::CCC_Symbol: {
  493     case CodeCompletionContext::CCC_MacroNameUse: {
  497     case CodeCompletionContext::CCC_NaturalLanguage: {
  501     case CodeCompletionContext::CCC_IncludedFile: {
  505     case CodeCompletionContext::CCC_SelectorName: {
  509     case CodeCompletionContext::CCC_ParenthesizedExpression: {
  522     case CodeCompletionContext::CCC_ObjCInstanceMessage: {
  526     case CodeCompletionContext::CCC_ObjCClassMessage: {
  530     case CodeCompletionContext::CCC_ObjCInterfaceName: {
  534     case CodeCompletionContext::CCC_ObjCCategoryName: {
  538     case CodeCompletionContext::CCC_Other:
  539     case CodeCompletionContext::CCC_ObjCInterface:
  540     case CodeCompletionContext::CCC_ObjCImplementation:
  541     case CodeCompletionContext::CCC_NewName:
  542     case CodeCompletionContext::CCC_MacroName:
  543     case CodeCompletionContext::CCC_PreprocessorExpression:
  544     case CodeCompletionContext::CCC_PreprocessorDirective:
  545     case CodeCompletionContext::CCC_TypeQualifiers: {
  551     case CodeCompletionContext::CCC_Recovery: {
  576                                     CodeCompletionContext Context,
  596       enum CodeCompletionContext::Kind contextKind = Context.getKind();
tools/clang/tools/libclang/CXCursor.cpp
 1437                                             CodeCompletionContext::CCC_Other,
 1452         CodeCompletionContext::CCC_Other,
tools/clang/unittests/Sema/CodeCompleteTest.cpp
   45   void ProcessCodeCompleteResults(Sema &S, CodeCompletionContext Context,
   63       CodeCompletionContext::VisitedContextSet VisitedContexts) const {
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
  759   void ProcessCodeCompleteResults(Sema &SemaRef, CodeCompletionContext Context,