clang 23.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#include "llvm/Support/TextEncoding.h"
15
16namespace clang {
18
20 llvm::StringRef LiteralEncoding;
21 llvm::TextEncodingConverter *ToLiteralEncodingConverter = nullptr;
22
23public:
24 llvm::TextEncodingConverter *getConverter(ConversionAction Action) const;
25 static std::error_code
27
28 llvm::StringRef getLiteralEncoding() { return LiteralEncoding; }
29};
30} // namespace clang
31#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