clang  3.8.0
Public Member Functions | Friends | List of all members
clang::ModuleMap::KnownHeader Class Reference

A header that is known to reside within a given module, whether it was included or excluded. More...

#include <ModuleMap.h>

Public Member Functions

 KnownHeader ()
 
 KnownHeader (Module *M, ModuleHeaderRole Role)
 
ModulegetModule () const
 Retrieve the module the header is stored in. More...
 
ModuleHeaderRole getRole () const
 The role of this header within the module. More...
 
bool isAvailable () const
 Whether this header is available in the module. More...
 
 operator bool () const
 

Friends

bool operator== (const KnownHeader &A, const KnownHeader &B)
 
bool operator!= (const KnownHeader &A, const KnownHeader &B)
 

Detailed Description

A header that is known to reside within a given module, whether it was included or excluded.

Definition at line 108 of file ModuleMap.h.

Constructor & Destructor Documentation

clang::ModuleMap::KnownHeader::KnownHeader ( )
inline

Definition at line 112 of file ModuleMap.h.

clang::ModuleMap::KnownHeader::KnownHeader ( Module M,
ModuleHeaderRole  Role 
)
inline

Definition at line 113 of file ModuleMap.h.

Member Function Documentation

Module* clang::ModuleMap::KnownHeader::getModule ( ) const
inline
ModuleHeaderRole clang::ModuleMap::KnownHeader::getRole ( ) const
inline

The role of this header within the module.

Definition at line 126 of file ModuleMap.h.

Referenced by clang::ModuleMap::diagnoseHeaderInclusion(), and isBetterKnownHeader().

bool clang::ModuleMap::KnownHeader::isAvailable ( ) const
inline

Whether this header is available in the module.

Definition at line 129 of file ModuleMap.h.

References getModule(), and clang::Module::isAvailable().

clang::ModuleMap::KnownHeader::operator bool ( ) const
inlineexplicit

Definition at line 135 of file ModuleMap.h.

Friends And Related Function Documentation

bool operator!= ( const KnownHeader A,
const KnownHeader B 
)
friend

Definition at line 118 of file ModuleMap.h.

bool operator== ( const KnownHeader A,
const KnownHeader B 
)
friend

Definition at line 115 of file ModuleMap.h.


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