clang  14.0.0git
Public Member Functions | Public Attributes | List of all members
clang::tooling::dependencies::ModuleID Struct Reference

This is used to identify a specific module. More...

#include "clang/Tooling/DependencyScanning/ModuleDepCollector.h"

Collaboration diagram for clang::tooling::dependencies::ModuleID:
Collaboration graph
[legend]

Public Member Functions

bool operator== (const ModuleID &Other) const
 

Public Attributes

std::string ModuleName
 The name of the module. More...
 
std::string ContextHash
 The context hash of a module represents the set of compiler options that may make one version of a module incompatible with another. More...
 

Detailed Description

This is used to identify a specific module.

Definition at line 44 of file ModuleDepCollector.h.

Member Function Documentation

◆ operator==()

bool clang::tooling::dependencies::ModuleID::operator== ( const ModuleID Other) const
inline

Definition at line 57 of file ModuleDepCollector.h.

References ContextHash, and ModuleName.

Member Data Documentation

◆ ContextHash

std::string clang::tooling::dependencies::ModuleID::ContextHash

The context hash of a module represents the set of compiler options that may make one version of a module incompatible with another.

This includes things like language mode, predefined macros, header search paths, etc...

Modules with the same name but a different ContextHash should be treated as separate modules for the purpose of a build.

Definition at line 55 of file ModuleDepCollector.h.

Referenced by clang::tooling::dependencies::DependencyScanningTool::getFullDependencies(), clang::tooling::dependencies::ModuleIDHasher::operator()(), and operator==().

◆ ModuleName

std::string clang::tooling::dependencies::ModuleID::ModuleName

The name of the module.

This may include : for C++20 module partitions, or a header-name for C++20 header units.

Definition at line 47 of file ModuleDepCollector.h.

Referenced by clang::tooling::dependencies::DependencyScanningTool::getFullDependencies(), clang::tooling::dependencies::ModuleIDHasher::operator()(), and operator==().


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