You've already forked linux-packaging-mono
acceptance-tests
data
debian
docs
external
Newtonsoft.Json
api-doc-tools
api-snapshot
aspnetwebstack
bdwgc
binary-reference-assemblies
bockbuild
boringssl
cecil
cecil-legacy
corefx
corert
helix-binaries
ikdasm
ikvm
illinker-test-assets
linker
llvm-project
clang
clang-tools-extra
compiler-rt
libcxx
libcxxabi
libunwind
lld
lldb
llvm
bindings
cmake
docs
examples
include
lib
Analysis
AsmParser
BinaryFormat
Bitcode
CodeGen
DebugInfo
CodeView
DWARF
CMakeLists.txt
DWARFAbbreviationDeclaration.cpp
DWARFAcceleratorTable.cpp
DWARFCompileUnit.cpp
DWARFContext.cpp
DWARFDataExtractor.cpp
DWARFDebugAbbrev.cpp
DWARFDebugArangeSet.cpp
DWARFDebugAranges.cpp
DWARFDebugFrame.cpp
DWARFDebugInfoEntry.cpp
DWARFDebugLine.cpp
DWARFDebugLoc.cpp
DWARFDebugMacro.cpp
DWARFDebugPubTable.cpp
DWARFDebugRangeList.cpp
DWARFDie.cpp
DWARFExpression.cpp
DWARFFormValue.cpp
DWARFGdbIndex.cpp
DWARFTypeUnit.cpp
DWARFUnit.cpp
DWARFUnitIndex.cpp
DWARFVerifier.cpp
LLVMBuild.txt
SyntaxHighlighting.cpp
SyntaxHighlighting.h
MSF
PDB
Symbolize
CMakeLists.txt
LLVMBuild.txt
Demangle
ExecutionEngine
FuzzMutate
Fuzzer
IR
IRReader
LTO
LineEditor
Linker
MC
Object
ObjectYAML
Option
Passes
ProfileData
Support
TableGen
Target
Testing
ToolDrivers
Transforms
WindowsManifest
XRay
CMakeLists.txt
LLVMBuild.txt
projects
resources
runtimes
scripts
test
tools
unittests
utils
.arcconfig
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt
CODE_OWNERS.TXT
CREDITS.TXT
LICENSE.TXT
LLVMBuild.txt
README.txt
RELEASE_TESTERS.TXT
configure
llvm.spec.in
openmp
polly
nuget-buildtasks
nunit-lite
roslyn-binaries
rx
xunit-binaries
how-to-bump-roslyn-binaries.md
ikvm-native
llvm
m4
man
mcs
mk
mono
msvc
netcore
po
runtime
samples
scripts
support
tools
COPYING.LIB
LICENSE
Makefile.am
Makefile.in
NEWS
README.md
acinclude.m4
aclocal.m4
autogen.sh
code_of_conduct.md
compile
config.guess
config.h.in
config.rpath
config.sub
configure.REMOVED.git-id
configure.ac.REMOVED.git-id
depcomp
install-sh
ltmain.sh.REMOVED.git-id
missing
mkinstalldirs
mono-uninstalled.pc.in
test-driver
winconfig.h
53 lines
1.1 KiB
C
53 lines
1.1 KiB
C
![]() |
//===- SyntaxHighlighting.h -------------------------------------*- C++ -*-===//
|
||
|
//
|
||
|
// The LLVM Compiler Infrastructure
|
||
|
//
|
||
|
// This file is distributed under the University of Illinois Open Source
|
||
|
// License. See LICENSE.TXT for details.
|
||
|
//
|
||
|
//===----------------------------------------------------------------------===//
|
||
|
|
||
|
#ifndef LLVM_LIB_DEBUGINFO_SYNTAXHIGHLIGHTING_H
|
||
|
#define LLVM_LIB_DEBUGINFO_SYNTAXHIGHLIGHTING_H
|
||
|
|
||
|
namespace llvm {
|
||
|
|
||
|
class raw_ostream;
|
||
|
|
||
|
namespace dwarf {
|
||
|
namespace syntax {
|
||
|
|
||
|
// Symbolic names for various syntax elements.
|
||
|
enum HighlightColor {
|
||
|
Address,
|
||
|
String,
|
||
|
Tag,
|
||
|
Attribute,
|
||
|
Enumerator,
|
||
|
Macro,
|
||
|
Error,
|
||
|
Warning,
|
||
|
Note
|
||
|
};
|
||
|
|
||
|
/// An RAII object that temporarily switches an output stream to a
|
||
|
/// specific color.
|
||
|
class WithColor {
|
||
|
raw_ostream &OS;
|
||
|
|
||
|
public:
|
||
|
/// To be used like this: WithColor(OS, syntax::String) << "text";
|
||
|
WithColor(raw_ostream &OS, enum HighlightColor Type);
|
||
|
~WithColor();
|
||
|
|
||
|
raw_ostream &get() { return OS; }
|
||
|
operator raw_ostream &() { return OS; }
|
||
|
};
|
||
|
|
||
|
} // end namespace syntax
|
||
|
} // end namespace dwarf
|
||
|
|
||
|
} // end namespace llvm
|
||
|
|
||
|
#endif // LLVM_LIB_DEBUGINFO_SYNTAXHIGHLIGHTING_H
|