clang: clang::ModuleLoadResult Class Reference (original) (raw)

Describes the result of attempting to load a module. More...

#include "[clang/Lex/ModuleLoader.h](ModuleLoader%5F8h%5Fsource.html)"

Public Member Functions
ModuleLoadResult ()=default
ModuleLoadResult (Module *M)
ModuleLoadResult (LoadResultKind Kind)
ModuleLoadResult (Module *M, LoadResultKind Kind)
operator bool () const
operator Module * () const
bool isNormal () const
Determines whether this is a normal return, whether or not loading the module was successful.
bool isMissingExpected () const
Determines whether the module, which failed to load, was actually a submodule that we expected to see (based on implying the submodule from header structure), but didn't materialize in the actual module.
bool isConfigMismatch () const
Determines whether the module failed to load due to a configuration mismatch with an explicitly-named .pcm file from the command line.

Describes the result of attempting to load a module.

Definition at line 35 of file ModuleLoader.h.

LoadResultKind

Enumerator
Normal
MissingExpected
ConfigMismatch

Definition at line 37 of file ModuleLoader.h.

clang::ModuleLoadResult::ModuleLoadResult ( ) default

ModuleLoadResult() [2/4]

clang::ModuleLoadResult::ModuleLoadResult ( Module * M) inline

ModuleLoadResult() [3/4]

clang::ModuleLoadResult::ModuleLoadResult ( LoadResultKind Kind) inline

ModuleLoadResult() [4/4]

isConfigMismatch()

bool clang::ModuleLoadResult::isConfigMismatch ( ) const inline

Determines whether the module failed to load due to a configuration mismatch with an explicitly-named .pcm file from the command line.

Definition at line 74 of file ModuleLoader.h.

References ConfigMismatch, and Storage.

isMissingExpected()

bool clang::ModuleLoadResult::isMissingExpected ( ) const inline

Determines whether the module, which failed to load, was actually a submodule that we expected to see (based on implying the submodule from header structure), but didn't materialize in the actual module.

Definition at line 70 of file ModuleLoader.h.

References MissingExpected, and Storage.

isNormal()

bool clang::ModuleLoadResult::isNormal ( ) const inline

Determines whether this is a normal return, whether or not loading the module was successful.

Definition at line 64 of file ModuleLoader.h.

References Normal, and Storage.

operator bool()

clang::ModuleLoadResult::operator bool ( ) const inline

operator Module *()

clang::ModuleLoadResult::operator Module * ( ) const inline

Storage


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