#include #include #include #include #include ">

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 <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.
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]

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

getModuleNameFromComponent() [2/2]

static StringRef getModuleNameFromComponent ( StringRef R) static

hasFeature()

isPlatformEnvironment()

static bool isPlatformEnvironment ( const TargetInfo & Target, StringRef Feature ) static

printModuleId() [1/2]

template

static void printModuleId ( raw_ostream & OS, const Container & C ) static

printModuleId() [2/2]

template

static void printModuleId ( raw_ostream & OS, InputIter Begin, InputIter End, bool AllowStringLiterals = true ) static