clang  5.0.0
Functions
Module.cpp File Reference
#include "clang/Basic/Module.h"
#include "clang/Basic/CharInfo.h"
#include "clang/Basic/FileManager.h"
#include "clang/Basic/LangOptions.h"
#include "clang/Basic/TargetInfo.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
Include dependency graph for Module.cpp:

Go to the source code of this file.

Functions

static bool hasFeature (StringRef Feature, const LangOptions &LangOpts, const TargetInfo &Target)
 Determine whether a translation unit built using the current language options has the given feature. More...
 
static StringRef getModuleNameFromComponent (const std::pair< std::string, SourceLocation > &IdComponent)
 
static StringRef getModuleNameFromComponent (StringRef R)
 
template<typename InputIter >
static void printModuleId (raw_ostream &OS, InputIter Begin, InputIter End, bool AllowStringLiterals=true)
 
template<typename Container >
static void printModuleId (raw_ostream &OS, const Container &C)
 

Function Documentation

static StringRef getModuleNameFromComponent ( const std::pair< std::string, SourceLocation > &  IdComponent)
static

Definition at line 129 of file Module.cpp.

Referenced by printModuleId().

static StringRef getModuleNameFromComponent ( StringRef  R)
static

Definition at line 133 of file Module.cpp.

static bool hasFeature ( StringRef  Feature,
const LangOptions LangOpts,
const TargetInfo Target 
)
static

Determine whether a translation unit built using the current language options has the given feature.

Definition at line 63 of file Module.cpp.

References clang::TargetInfo::hasFeature(), HasFeature(), clang::TargetInfo::isTLSSupported(), and clang::LangOptions::ModuleFeatures.

Referenced by clang::Module::addRequirement(), and clang::Module::isAvailable().

template<typename InputIter >
static void printModuleId ( raw_ostream &  OS,
InputIter  Begin,
InputIter  End,
bool  AllowStringLiterals = true 
)
static
template<typename Container >
static void printModuleId ( raw_ostream &  OS,
const Container &  C 
)
static

Definition at line 154 of file Module.cpp.

References printModuleId().