blob: 43923ae3328f03dd2049323f7c33609350af1557 (
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
35
36
37
38
|
//==- HTMLRewrite.h - Translate source code into prettified HTML ---*- C++ -*-//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file defines a set of functions used for translating source code
// into beautified HTML.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_CLANG_HTMLREWRITER_H
#define LLVM_CLANG_HTMLREWRITER_H
#include "clang/Basic/SourceLocation.h"
namespace clang {
class Rewriter;
namespace html {
enum Tags { PRE, HEAD, BODY };
void EscapeText(Rewriter& R, unsigned FileID, bool EscapeSpaces = false);
void InsertTag(Rewriter& R, Tags tag,
SourceLocation OpenLoc, SourceLocation CloseLoc,
bool NewlineOpen = false, bool NewlineClose = true,
bool OutermostTag = false);
} // end html namespace
} // end clang namespace
#endif
|