Callbacks to use to customize the behavior of the pretty-printer. More...
#include "clang/AST/PrettyPrinter.h"
Callbacks to use to customize the behavior of the pretty-printer.
Definition at line 32 of file PrettyPrinter.h.
◆ ~PrintingCallbacks() clang::PrintingCallbacks::~PrintingCallbacks ( ) protecteddefault ◆ isScopeVisible() virtual bool clang::PrintingCallbacks::isScopeVisible ( const DeclContext * DC ) const inlinevirtualWhen printing type to be inserted into code in specific context, this callback can be used to avoid printing the redundant part of the qualifier.
For example, when inserting code inside namespace foo, we should print bar::SomeType instead of foo::bar::SomeType. To do this, shouldPrintScope should return true on "foo" NamespaceDecl. The printing stops at the first isScopeVisible() == true, so there will be no calls with outer scopes.
Definition at line 49 of file PrettyPrinter.h.
◆ remapPath() virtual std::string clang::PrintingCallbacks::remapPath ( StringRef Path ) const inlinevirtualRemap a path to a form suitable for printing.
Definition at line 38 of file PrettyPrinter.h.
References Path.
The documentation for this class was generated from the following file:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4