clang API Documentation

CodeCompleteOptions.h
Go to the documentation of this file.
00001 //===---- CodeCompleteOptions.h - Code Completion Options -------*- C++ -*-===//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 
00010 #ifndef LLVM_CLANG_SEMA_CODECOMPLETEOPTIONS_H
00011 #define LLVM_CLANG_SEMA_CODECOMPLETEOPTIONS_H
00012 
00013 /// Options controlling the behavior of code completion.
00014 class CodeCompleteOptions {
00015 public:
00016   /// Show macros in code completion results.
00017   unsigned IncludeMacros : 1;
00018 
00019   /// Show code patterns in code completion results.
00020   unsigned IncludeCodePatterns : 1;
00021 
00022   /// Show top-level decls in code completion results.
00023   unsigned IncludeGlobals : 1;
00024 
00025   /// Show brief documentation comments in code completion results.
00026   unsigned IncludeBriefComments : 1;
00027 
00028   CodeCompleteOptions() :
00029       IncludeMacros(0),
00030       IncludeCodePatterns(0),
00031       IncludeGlobals(1),
00032       IncludeBriefComments(0)
00033   { }
00034 };
00035 
00036 #endif
00037