clang  6.0.0svn
Public Member Functions | Public Attributes | List of all members
clang::CodeCompleteOptions Class Reference

Options controlling the behavior of code completion. More...

#include "clang/Sema/CodeCompleteOptions.h"

Collaboration diagram for clang::CodeCompleteOptions:
Collaboration graph
[legend]

Public Member Functions

 CodeCompleteOptions ()
 

Public Attributes

unsigned IncludeMacros: 1
 Show macros in code completion results. More...
 
unsigned IncludeCodePatterns: 1
 Show code patterns in code completion results. More...
 
unsigned IncludeGlobals: 1
 Show top-level decls in code completion results. More...
 
unsigned IncludeNamespaceLevelDecls: 1
 Show decls in namespace (including the global namespace) in code completion results. More...
 
unsigned IncludeBriefComments: 1
 Show brief documentation comments in code completion results. More...
 

Detailed Description

Options controlling the behavior of code completion.

Definition at line 16 of file CodeCompleteOptions.h.

Constructor & Destructor Documentation

◆ CodeCompleteOptions()

clang::CodeCompleteOptions::CodeCompleteOptions ( )
inline

Definition at line 38 of file CodeCompleteOptions.h.

Member Data Documentation

◆ IncludeBriefComments

unsigned clang::CodeCompleteOptions::IncludeBriefComments

Show brief documentation comments in code completion results.

Definition at line 36 of file CodeCompleteOptions.h.

Referenced by clang::ASTUnit::CodeComplete(), clang::CodeCompleteConsumer::includeBriefComments(), and ParseFrontendArgs().

◆ IncludeCodePatterns

unsigned clang::CodeCompleteOptions::IncludeCodePatterns

Show code patterns in code completion results.

Definition at line 22 of file CodeCompleteOptions.h.

Referenced by clang::ASTUnit::CodeComplete(), clang::CodeCompleteConsumer::includeCodePatterns(), and ParseFrontendArgs().

◆ IncludeGlobals

unsigned clang::CodeCompleteOptions::IncludeGlobals

Show top-level decls in code completion results.

Definition at line 25 of file CodeCompleteOptions.h.

Referenced by clang::ASTUnit::CodeComplete(), clang::CodeCompleteConsumer::includeGlobals(), and ParseFrontendArgs().

◆ IncludeMacros

unsigned clang::CodeCompleteOptions::IncludeMacros

Show macros in code completion results.

Definition at line 19 of file CodeCompleteOptions.h.

Referenced by clang::ASTUnit::CodeComplete(), clang::CodeCompleteConsumer::includeMacros(), and ParseFrontendArgs().

◆ IncludeNamespaceLevelDecls

unsigned clang::CodeCompleteOptions::IncludeNamespaceLevelDecls

Show decls in namespace (including the global namespace) in code completion results.

If this is 0, IncludeGlobals will be ignored.

Currently, this only works when completing qualified IDs (i.e. Sema::CodeCompleteQualifiedId). FIXME: consider supporting more completion cases with this option.

Definition at line 33 of file CodeCompleteOptions.h.

Referenced by clang::CodeCompleteConsumer::includeNamespaceLevelDecls(), and ParseFrontendArgs().


The documentation for this class was generated from the following file: