llvm::yaml::IO::preflightKey

Prepare key Key in the current mapping.

Synopsis

Declared in <llvm/Support/YAMLTraits.h>

virtual
bool
preflightKey(
    StringRef Key,
    bool Required,
    bool SameAsDefault,
    bool& UseDefault,
    void*& SaveInfo) = 0;

Return Value

true if the key/value should be processed.

Parameters

NameDescription
KeyMapping key text.
RequiredWhether the key must be present on input.
SameAsDefaultWhether the value equals its default on output.
UseDefaultSet to true when the default should be used.
SaveInfoOpaque state restored in postflightKey.