clang: lib/Basic/Module.cpp File Reference (original) (raw)
#include "[clang/Basic/Module.h](Module%5F8h%5Fsource.html)"#include "[clang/Basic/CharInfo.h](CharInfo%5F8h%5Fsource.html)"#include "[clang/Basic/FileManager.h](FileManager%5F8h%5Fsource.html)"#include "[clang/Basic/LangOptions.h](LangOptions%5F8h%5Fsource.html)"#include "[clang/Basic/SourceLocation.h](SourceLocation%5F8h%5Fsource.html)"#include "[clang/Basic/TargetInfo.h](include%5F2clang%5F2Basic%5F2TargetInfo%5F8h%5Fsource.html)"#include "llvm/ADT/ArrayRef.h"#include "llvm/ADT/SmallVector.h"#include "llvm/ADT/StringMap.h"#include "llvm/ADT/StringRef.h"#include "llvm/ADT/StringSwitch.h"#include "llvm/Support/Compiler.h"#include "llvm/Support/ErrorHandling.h"#include "llvm/Support/raw_ostream.h"#include <cassert>#include <functional>#include <string>#include <utility>#include <vector>
Go to the source code of this file.
| Functions | |
|---|---|
| static bool | isPlatformEnvironment (const TargetInfo &Target, StringRef Feature) |
| 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. | |
| static StringRef | getModuleNameFromComponent (const std::pair< std::string, SourceLocation > &IdComponent) |
| static StringRef | getModuleNameFromComponent (StringRef R) |
| template | |
| static void | printModuleId (raw_ostream &OS, InputIter Begin, InputIter End, bool AllowStringLiterals=true) |
| template | |
| static void | printModuleId (raw_ostream &OS, const Container &C) |
◆ getModuleNameFromComponent() [1/2]
| StringRef getModuleNameFromComponent ( const std::pair< std::string, SourceLocation > & IdComponent) | static |
|---|
◆ getModuleNameFromComponent() [2/2]
| StringRef getModuleNameFromComponent ( StringRef R) | static |
|---|
◆ hasFeature()
Determine whether a translation unit built using the current language options has the given feature.
Definition at line 95 of file Module.cpp.
References Feature, HasFeature(), isPlatformEnvironment(), and clang::LangOptions::ModuleFeatures.
Referenced by clang::Module::addRequirement(), clang::SemaARM::checkTargetClonesAttr(), clang::CodeGen::CodeGenFunction::EmitCall(), clang::ASTContext::getDefaultCallingConvention(), clang::targets::DarwinI386TargetInfo::handleTargetFeatures(), clang::targets::DarwinX86_64TargetInfo::handleTargetFeatures(), clang::Module::isUnimportable(), clang::targets::PPC64TargetInfo::setMaxAtomicWidth(), clang::targets::X86_32TargetInfo::setMaxAtomicWidth(), and clang::targets::X86_64TargetInfo::setMaxAtomicWidth().
◆ isPlatformEnvironment()
| bool isPlatformEnvironment ( const TargetInfo & Target, StringRef Feature ) | static |
|---|
◆ printModuleId() [1/2]
template
| void printModuleId ( raw_ostream & OS, const Container & C ) | static |
|---|
◆ printModuleId() [2/2]
template
| void printModuleId ( raw_ostream & OS, InputIter Begin, InputIter End, bool AllowStringLiterals = true ) | static |
|---|