clang  7.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...
 
unsigned LoadExternal: 1
 Hint whether to load data from the external AST to provide full results. More...
 
unsigned IncludeFixIts: 1
 Include results after corrections (small fix-its), e.g. 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 46 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().

◆ IncludeFixIts

unsigned clang::CodeCompleteOptions::IncludeFixIts

Include results after corrections (small fix-its), e.g.

change '.' to '->' on member access, etc.

Definition at line 44 of file CodeCompleteOptions.h.

Referenced by clang::ASTUnit::CodeComplete(), clang::CodeCompleteConsumer::includeFixIts(), 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().

◆ LoadExternal

unsigned clang::CodeCompleteOptions::LoadExternal

Hint whether to load data from the external AST to provide full results.

If false, namespace-level declarations from the preamble may be omitted.

Definition at line 40 of file CodeCompleteOptions.h.

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


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