[all-commits] [llvm/llvm-project] fa7834: [demangler] Preserve line numbering in copied dema...

Nathan Sidwell via All-commits all-commits at lists.llvm.org
Tue Feb 1 05:31:08 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fa7834a55484f9a7add76750a448184c333fba4b
      https://github.com/llvm/llvm-project/commit/fa7834a55484f9a7add76750a448184c333fba4b
  Author: Nathan Sidwell <nathan at acm.org>
  Date:   2022-02-01 (Tue, 01 Feb 2022)

  Changed paths:
    M libcxxabi/src/demangle/ItaniumDemangle.h
    M libcxxabi/src/demangle/README.txt
    M libcxxabi/src/demangle/StringView.h
    M libcxxabi/src/demangle/Utility.h
    M libcxxabi/src/demangle/cp-to-llvm.sh
    M llvm/include/llvm/Demangle/ItaniumDemangle.h
    M llvm/include/llvm/Demangle/README.txt
    M llvm/include/llvm/Demangle/StringView.h
    M llvm/include/llvm/Demangle/Utility.h

  Log Message:
  -----------
  [demangler] Preserve line numbering in copied demangler sources

While prepending lines to the copied source files is functional, it
disturbs the line numbering between the original and the copy.  That
makes development more awkward than necessary, as it is the copy that
generally gets compiled first and emits compiler errors.

This uses sed to alter the first two lines, and also emits better
emacs mode setting, getting both C++ mode and read-only mode.

While here, also update and clarify documentation.

Reviewed By: ChuanqiXu

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




More information about the All-commits mailing list