ΒΆstd::unique_ptr<ASTConsumer> CreateHTMLPrinter(
    std::unique_ptr<raw_ostream> OS,
    clang::Preprocessor& PP,
    bool SyntaxHighlight = true,
    bool HighlightMacros = true)

Description

CreateHTMLPrinter - Create an AST consumer which rewrites source code to HTML with syntax highlighting suitable for viewing in a web-browser.

Declared at: clang/include/clang/Rewrite/Frontend/ASTConsumers.h:41

Parameters

std::unique_ptr<raw_ostream> OS
clang::Preprocessor& PP
bool SyntaxHighlight = true
bool HighlightMacros = true