class InputKind
Declaration
class InputKind { /* full declaration omitted */ };
Description
The kind of a file that we've been handed as an input.
Declared at: clang/include/clang/Frontend/FrontendOptions.h:151
Member Variables
- private clang::Language Lang
- private unsigned int Fmt
- private unsigned int Preprocessed
- private unsigned int HeaderUnit
- private unsigned int IsHeader
Method Overview
- public constexpr InputKind(clang::Language L = Language::Unknown, clang::InputKind::Format F = Source, bool PP = false, clang::InputKind::HeaderUnitKind HU = HeaderUnit_None, bool HD = false)
- public clang::InputKind::Format getFormat() const
- public clang::InputKind getHeader() const
- public clang::InputKind::HeaderUnitKind getHeaderUnitKind() const
- public clang::Language getLanguage() const
- public clang::InputKind getPreprocessed() const
- public bool isHeader() const
- public bool isHeaderUnit() const
- public bool isObjectiveC() const
- public bool isPreprocessed() const
- public bool isUnknown() const
- public clang::InputKind withFormat(clang::InputKind::Format F) const
- public clang::InputKind withHeaderUnit(clang::InputKind::HeaderUnitKind HU) const
Methods
¶constexpr InputKind(
clang::Language L = Language::Unknown,
clang::InputKind::Format F = Source,
bool PP = false,
clang::InputKind::HeaderUnitKind HU =
HeaderUnit_None,
bool HD = false)
constexpr InputKind(
clang::Language L = Language::Unknown,
clang::InputKind::Format F = Source,
bool PP = false,
clang::InputKind::HeaderUnitKind HU =
HeaderUnit_None,
bool HD = false)
Declared at: clang/include/clang/Frontend/FrontendOptions.h:177
Parameters
- clang::Language L = Language::Unknown
- clang::InputKind::Format F = Source
- bool PP = false
- clang::InputKind::HeaderUnitKind HU = HeaderUnit_None
- bool HD = false
¶clang::InputKind::Format getFormat() const
clang::InputKind::Format getFormat() const
Declared at: clang/include/clang/Frontend/FrontendOptions.h:183
¶clang::InputKind getHeader() const
clang::InputKind getHeader() const
Declared at: clang/include/clang/Frontend/FrontendOptions.h:204
¶clang::InputKind::HeaderUnitKind
getHeaderUnitKind() const
clang::InputKind::HeaderUnitKind
getHeaderUnitKind() const
Declared at: clang/include/clang/Frontend/FrontendOptions.h:184
¶clang::Language getLanguage() const
clang::Language getLanguage() const
Declared at: clang/include/clang/Frontend/FrontendOptions.h:182
¶clang::InputKind getPreprocessed() const
clang::InputKind getPreprocessed() const
Declared at: clang/include/clang/Frontend/FrontendOptions.h:199
¶bool isHeader() const
bool isHeader() const
Declared at: clang/include/clang/Frontend/FrontendOptions.h:188
¶bool isHeaderUnit() const
bool isHeaderUnit() const
Declared at: clang/include/clang/Frontend/FrontendOptions.h:189
¶bool isObjectiveC() const
bool isObjectiveC() const
Description
Is the language of the input some dialect of Objective-C?
Declared at: clang/include/clang/Frontend/FrontendOptions.h:195
¶bool isPreprocessed() const
bool isPreprocessed() const
Declared at: clang/include/clang/Frontend/FrontendOptions.h:187
¶bool isUnknown() const
bool isUnknown() const
Description
Is the input kind fully-unknown?
Declared at: clang/include/clang/Frontend/FrontendOptions.h:192
¶clang::InputKind withFormat(
clang::InputKind::Format F) const
clang::InputKind withFormat(
clang::InputKind::Format F) const
Declared at: clang/include/clang/Frontend/FrontendOptions.h:214
Parameters
- clang::InputKind::Format F
¶clang::InputKind withHeaderUnit(
clang::InputKind::HeaderUnitKind HU) const
clang::InputKind withHeaderUnit(
clang::InputKind::HeaderUnitKind HU) const
Declared at: clang/include/clang/Frontend/FrontendOptions.h:209
Parameters
- clang::InputKind::HeaderUnitKind HU