clang
10.0.0svn
|
#include "clang/Basic/Module.h"
#include "clang/Basic/CharInfo.h"
#include "clang/Basic/FileManager.h"
#include "clang/Basic/LangOptions.h"
#include "clang/Basic/SourceLocation.h"
#include "clang/Basic/TargetInfo.h"
#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 <algorithm>
#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. 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) |
|
static |
Definition at line 183 of file Module.cpp.
Referenced by printModuleId().
|
static |
Definition at line 188 of file Module.cpp.
|
static |
Determine whether a translation unit built using the current language options has the given feature.
Definition at line 106 of file Module.cpp.
References HasFeature(), clang::TargetInfo::hasFeature(), isPlatformEnvironment(), clang::TargetInfo::isTLSSupported(), and clang::LangOptions::ModuleFeatures.
Referenced by clang::Module::addRequirement(), clang::targets::SystemZTargetInfo::handleTargetFeatures(), clang::targets::X86TargetInfo::handleTargetFeatures(), clang::targets::DarwinI386TargetInfo::handleTargetFeatures(), clang::targets::DarwinX86_64TargetInfo::handleTargetFeatures(), clang::targets::NVPTXTargetInfo::initFeatureMap(), clang::targets::HexagonTargetInfo::isCLZForZeroUndef(), clang::targets::ARMTargetInfo::isValidFeatureName(), clang::targets::X86TargetInfo::setFeatureEnabled(), clang::targets::X86_32TargetInfo::setMaxAtomicWidth(), and clang::targets::X86_64TargetInfo::setMaxAtomicWidth().
|
static |
Definition at line 73 of file Module.cpp.
References clang::TargetInfo::getPlatformName(), and clang::TargetInfo::getTriple().
Referenced by hasFeature().
|
static |
Definition at line 191 of file Module.cpp.
References End, getModuleNameFromComponent(), clang::isValidIdentifier(), and clang::Module::Name.
Referenced by clang::Module::getFullModuleName(), and clang::Module::print().
|
static |
Definition at line 209 of file Module.cpp.