[all-commits] [llvm/llvm-project] dbcb69: Replace std::function in PrintingPolicy with a cal...

Richard Smith via All-commits all-commits at lists.llvm.org
Tue Oct 29 15:29:52 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: dbcb690fb78193e99452748c4af72eccb262e4e2
      https://github.com/llvm/llvm-project/commit/dbcb690fb78193e99452748c4af72eccb262e4e2
  Author: Richard Smith <richard-llvm at metafoo.co.uk>
  Date:   2019-10-29 (Tue, 29 Oct 2019)

  Changed paths:
    M clang/include/clang/AST/PrettyPrinter.h
    M clang/lib/AST/TypePrinter.cpp
    M clang/lib/CodeGen/CGDebugInfo.cpp
    M clang/lib/CodeGen/CGDebugInfo.h

  Log Message:
  -----------
  Replace std::function in PrintingPolicy with a callbacks object.

This makes PrintingPolicy significantly more lightweight and provides
groundwork for more printing customization hooks.




More information about the All-commits mailing list