FLANG
StringOstream.h
1//===-- CompilerInstance.h - Flang Compiler Instance ------------*- 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// Coding style: https://mlir.llvm.org/getting_started/DeveloperGuide/
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef FORTRAN_SUPPORT_STRINGOSTREAM_H
14#define FORTRAN_SUPPORT_STRINGOSTREAM_H
15
16#include <llvm/Support/raw_ostream.h>
17
18namespace Fortran::support {
19
22class string_ostream : public llvm::raw_string_ostream {
23private:
24 std::string buf;
25
26public:
27 string_ostream() : llvm::raw_string_ostream(buf) {}
28};
29
30} // namespace Fortran::support
31
32#endif // FORTRAN_SUPPORT_STRINGOSTREAM_H
Definition: StringOstream.h:22