[all-commits] [llvm/llvm-project] bf20d4: [lld/mac] Use C++17 nested namespace syntax in mos...

Nico Weber via All-commits all-commits at lists.llvm.org
Mon Aug 8 04:11:50 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bf20d43f8263b1df43c26a2ac9fec7220bcb735e
      https://github.com/llvm/llvm-project/commit/bf20d43f8263b1df43c26a2ac9fec7220bcb735e
  Author: Nico Weber <thakis at chromium.org>
  Date:   2022-08-08 (Mon, 08 Aug 2022)

  Changed paths:
    M lld/MachO/Arch/ARM64Common.h
    M lld/MachO/ConcatOutputSection.h
    M lld/MachO/Driver.h
    M lld/MachO/Dwarf.h
    M lld/MachO/EhFrame.h
    M lld/MachO/ExportTrie.h
    M lld/MachO/ICF.h
    M lld/MachO/LTO.h
    M lld/MachO/MachOStructs.h
    M lld/MachO/MapFile.h
    M lld/MachO/MarkLive.cpp
    M lld/MachO/MarkLive.h
    M lld/MachO/ObjC.h
    M lld/MachO/OutputSection.h
    M lld/MachO/OutputSegment.h
    M lld/MachO/Relocations.h
    M lld/MachO/SectionPriorities.h
    M lld/MachO/SymbolTable.h
    M lld/MachO/SyntheticSections.h
    M lld/MachO/Target.h
    M lld/MachO/UnwindInfoSection.h
    M lld/MachO/Writer.h

  Log Message:
  -----------
  [lld/mac] Use C++17 nested namespace syntax in most places

Some header files used

    namespace lld {
    namespace macho {
    // ...
    } // namespace macho
    std::string toString(const Type &t);
    } // namespace lld

In those files, I didn't use a nested namespace since it's not a big win there.

No behavior change.

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




More information about the All-commits mailing list