[all-commits] [llvm/llvm-project] b68bf9: [llvm-readobj] Delete redundant 'static' from name...

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Oct 18 22:22:09 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b68bf98c0ace8c5ed39d958d0fd62016256b10d0
      https://github.com/llvm/llvm-project/commit/b68bf98c0ace8c5ed39d958d0fd62016256b10d0
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-10-18 (Mon, 18 Oct 2021)

  Changed paths:
    M llvm/tools/llvm-readobj/COFFDumper.cpp
    M llvm/tools/llvm-readobj/ELFDumper.cpp
    M llvm/tools/llvm-readobj/MachODumper.cpp
    M llvm/tools/llvm-readobj/WasmDumper.cpp
    M llvm/tools/llvm-readobj/Win64EHDumper.cpp
    M llvm/tools/llvm-readobj/XCOFFDumper.cpp
    M llvm/tools/llvm-readobj/llvm-readobj.cpp

  Log Message:
  -----------
  [llvm-readobj] Delete redundant 'static' from namespace scope 'static const'. NFC

By default, such a non-template variable of non-volatile const-qualified type
having namespace-scope has internal linkage ([basic.link]), so no need for `static`.




More information about the All-commits mailing list