A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://clang.llvm.org/doxygen/classclang_1_1PrintingCallbacks.html below:

clang: clang::PrintingCallbacks Class Reference

Callbacks to use to customize the behavior of the pretty-printer. More...

#include "clang/AST/PrettyPrinter.h"

virtual std::string  remapPath (StringRef Path) const   Remap a path to a form suitable for printing.
  virtual bool  isScopeVisible (const DeclContext *DC) const   When printing type to be inserted into code in specific context, this callback can be used to avoid printing the redundant part of the qualifier.
 

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 DeclContextDC ) const inlinevirtual

When 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 inlinevirtual

Remap 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