GlobalOptions

public struct GlobalOptions: OptionSet

Global options used to inform the Index.

  • Declaration

    Swift

    public let rawValue: RawValue
  • Creates a new GlobalOptions from a raw integer value.

    Declaration

    Swift

    public init(rawValue: RawValue)
  • Used to indicate that no special CXIndex options are needed.

    Declaration

    Swift

    public static let none = GlobalOptions(rawValue:
  • Used to indicate that threads that libclang creates for indexing purposes should use background priority. Affects #clang_indexSourceFile, #clang_indexTranslationUnit,

    clang_parseTranslationUnit, #clang_saveTranslationUnit.

    Declaration

    Swift

    public static let threadBackgroundPriorityForIndexing = GlobalOptions(rawValue:
  • Used to indicate that threads that libclang creates for editing purposes should use background priority. Affects #clang_reparseTranslationUnit, #clang_codeCompleteAt,

    clang_annotateTokens

    Declaration

    Swift

    public static let threadBackgroundPriorityForEditing = GlobalOptions(rawValue:
  • Used to indicate that all threads that libclang creates should use background priority.

    Declaration

    Swift

    public static let threadBackgroundPriorityForAll = GlobalOptions(rawValue: