|
clang 24.0.0git
|
#include "clang/Lex/TextEncoding.h"
Public Member Functions | |
| llvm::TextEncodingConverter * | getConverter (ConversionAction Action) const |
| llvm::TextEncodingConverter * | getFromLiteralEncodingConverter () const |
| Returns the converter from the literal encoding (-fexec-charset) to UTF-8, or nullptr if the literal encoding is UTF-8. | |
| llvm::TextEncodingConverter * | getzOSFromAsmLiteralEncodingConverter () const |
| Returns the converter from IBM-1047 to UTF-8, or nullptr if not on z/OS. | |
| llvm::StringRef | getLiteralEncoding () |
Static Public Member Functions | |
| static std::error_code | setConvertersFromOptions (TextEncoding &TE, const clang::LangOptions &Opts, TargetInfo &TInfo) |
Definition at line 28 of file TextEncoding.h.
| llvm::TextEncodingConverter * TextEncoding::getConverter | ( | ConversionAction | Action | ) | const |
Definition at line 17 of file TextEncoding.cpp.
References clang::CA_ToLiteralEncoding, and clang::CA_ToLiteralEncodingForAsm.
Referenced by clang::CharLiteralParser::CharLiteralParser().
|
inline |
Returns the converter from the literal encoding (-fexec-charset) to UTF-8, or nullptr if the literal encoding is UTF-8.
Definition at line 45 of file TextEncoding.h.
|
inline |
Definition at line 58 of file TextEncoding.h.
|
inline |
Returns the converter from IBM-1047 to UTF-8, or nullptr if not on z/OS.
Definition at line 50 of file TextEncoding.h.
|
static |
Definition at line 30 of file TextEncoding.cpp.
References clang::TargetInfo::getTriple(), clang::LangOptions::LiteralEncoding, and clang::UTF8.
Referenced by clang::CompilerInstance::createPreprocessor().