static const char *const foo => const char foo[]
authorFangrui Song <i@maskray.me>
Tue, 1 Dec 2020 18:33:18 +0000 (10:33 -0800)
committerFangrui Song <i@maskray.me>
Tue, 1 Dec 2020 18:33:18 +0000 (10:33 -0800)
commita5309438fe8d4f1212ae645bc0aaf71fdf73d028
tree3e1473dc3c3bb1c0eaf36c640ea76a615a5acf75
parentbb993b1d9de34b8e47511a746bf4422ba206123b
static const char *const foo => const char foo[]

By default, a non-template variable of non-volatile const-qualified type
having namespace-scope has internal linkage, so no need for `static`.
13 files changed:
llvm/lib/Analysis/ReleaseModeModelRunner.cpp
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/lib/IRReader/IRReader.cpp
llvm/lib/Object/Archive.cpp
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp
llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp
llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp
llvm/lib/Transforms/Scalar/StructurizeCFG.cpp
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp