clang 24.0.0git
TextEncoding.h
Go to the documentation of this file.
1//===-- clang/Lex/TextEncoding.h - Text Encoding Conversion ------*- C++-*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLVM_CLANG_LEX_TEXTENCODING_H
10#define LLVM_CLANG_LEX_TEXTENCODING_H
11
13#include "llvm/ADT/StringRef.h"
14
15namespace llvm {
16class TextEncodingConverter;
17} // namespace llvm
18
19namespace clang {
21
23 llvm::StringRef LiteralEncoding;
24 std::unique_ptr<llvm::TextEncodingConverter> ToLiteralEncodingConverter;
25
26public:
27 llvm::TextEncodingConverter *getConverter(ConversionAction Action) const;
28 static std::error_code
30
31 llvm::StringRef getLiteralEncoding() { return LiteralEncoding; }
32};
33} // namespace clang
34#endif
Defines the clang::LangOptions interface.
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
llvm::StringRef getLiteralEncoding()
static std::error_code setConvertersFromOptions(TextEncoding &TE, const clang::LangOptions &Opts)
llvm::TextEncodingConverter * getConverter(ConversionAction Action) const
The JSON file list parser is used to communicate input to InstallAPI.
ConversionAction
@ CA_NoConversion
@ CA_ToLiteralEncoding
Diagnostic wrappers for TextAPI types for error reporting.
Definition Dominators.h:30