summaryrefslogtreecommitdiff
path: root/flang/include/flang/Common/colors.h
blob: feb259c22c6745b36331f324aea59b5fd8e4d8d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//===-- include/flang/Parser/colors.h ---------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// Defines colors used for diagnostics.
//
//===----------------------------------------------------------------------===//

#ifndef FORTRAN_PARSER_COLORS_H_
#define FORTRAN_PARSER_COLORS_H_

#include "llvm/Support/raw_ostream.h"

namespace Fortran::common {

static constexpr enum llvm::raw_ostream::Colors noteColor =
    llvm::raw_ostream::BLACK;
static constexpr enum llvm::raw_ostream::Colors remarkColor =
    llvm::raw_ostream::BLUE;
static constexpr enum llvm::raw_ostream::Colors warningColor =
    llvm::raw_ostream::MAGENTA;
static constexpr enum llvm::raw_ostream::Colors errorColor = llvm::raw_ostream::RED;
static constexpr enum llvm::raw_ostream::Colors fatalColor = llvm::raw_ostream::RED;
// Used for changing only the bold attribute.
static constexpr enum llvm::raw_ostream::Colors savedColor =
    llvm::raw_ostream::SAVEDCOLOR;
    
} // namespace Fortran::common

#endif