[all-commits] [llvm/llvm-project] 6c6fba: Correctly handle using foo = std::foo inside names...

Sterling-Augustine via All-commits all-commits at lists.llvm.org
Thu Mar 26 11:24:32 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6c6fba8808e6e576ee8259b7699e3e4fd545d0bb
      https://github.com/llvm/llvm-project/commit/6c6fba8808e6e576ee8259b7699e3e4fd545d0bb
  Author: Sterling Augustine <saugustine at google.com>
  Date:   2020-03-26 (Thu, 26 Mar 2020)

  Changed paths:
    M libcxx/test/pretty_printers/gdb_pretty_printer_test.sh.cpp
    M libcxx/utils/gdb/libcxx/printers.py

  Log Message:
  -----------
  Correctly handle using foo = std::foo inside namespaces.

Summary:
The gdb pretty printer misprints variables declared via
using declarations of the form:

namespace foo {
using string_view = std::string_view;

string_view bar;
}

This change fixes that, by deferring the decision to ignore
types not inside std until after desugaring.

Reviewers: #libc!

Subscribers: broadwaylamb, libcxx-commits

Tags: #libc

Differential Revision: https://reviews.llvm.org/D76816




More information about the All-commits mailing list