[all-commits] [llvm/llvm-project] 5f290c: Move STLFunctionalExtras out of STLExtras

serge-sans-paille via All-commits all-commits at lists.llvm.org
Mon Jan 24 05:15:35 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5f290c090a2404238a5b0ae4233f3ae9daec319e
      https://github.com/llvm/llvm-project/commit/5f290c090a2404238a5b0ae4233f3ae9daec319e
  Author: serge-sans-paille <sguelton at redhat.com>
  Date:   2022-01-24 (Mon, 24 Jan 2022)

  Changed paths:
    M clang/include/clang/Basic/DirectoryEntry.h
    M clang/tools/diagtool/DiagTool.cpp
    M lld/ELF/Relocations.h
    M lldb/include/lldb/Utility/UserIDResolver.h
    M llvm/include/llvm/ADT/CombinationGenerator.h
    M llvm/include/llvm/ADT/STLExtras.h
    A llvm/include/llvm/ADT/STLFunctionalExtras.h
    M llvm/include/llvm/ADT/SmallSet.h
    M llvm/include/llvm/ADT/SparseMultiSet.h
    M llvm/include/llvm/ADT/SparseSet.h
    M llvm/include/llvm/ADT/StringMap.h
    M llvm/include/llvm/ADT/StringMapEntry.h
    M llvm/include/llvm/ADT/StringRef.h
    M llvm/include/llvm/ADT/StringSwitch.h
    A llvm/include/llvm/ADT/identity.h
    M llvm/include/llvm/ExecutionEngine/JITLink/MemoryFlags.h
    M llvm/include/llvm/IR/LLVMContext.h
    M llvm/include/llvm/MC/SubtargetFeature.h
    M llvm/include/llvm/Support/CrashRecoveryContext.h
    M llvm/include/llvm/Support/JSON.h
    M llvm/include/llvm/Support/TimeProfiler.h
    M llvm/include/llvm/Support/Timer.h
    M llvm/include/llvm/Support/VirtualFileSystem.h
    M llvm/include/llvm/Support/raw_ostream.h
    M llvm/include/llvm/Testing/Support/Annotations.h
    M llvm/lib/CodeGen/NonRelocatableStringpool.cpp
    M llvm/lib/Support/CommandLine.cpp
    M llvm/lib/Support/StringRef.cpp
    M llvm/lib/Support/TimeProfiler.cpp
    M llvm/lib/Target/AMDGPU/AMDGPULibFunc.h
    M llvm/unittests/ADT/SequenceTest.cpp
    M llvm/unittests/ADT/SimpleIListTest.cpp
    M llvm/unittests/ADT/SmallPtrSetTest.cpp
    M llvm/unittests/ADT/StringMapTest.cpp
    M llvm/unittests/ADT/StringSetTest.cpp
    M llvm/unittests/Support/ReverseIterationTest.cpp
    M mlir/include/mlir/Conversion/GPUCommon/GPUCommonPass.h
    M mlir/lib/Parser/Token.h

  Log Message:
  -----------
  Move STLFunctionalExtras out of STLExtras

Only using that change in StringRef already decreases the number of
preoprocessed lines from 7837621 to 7776151 for LLVMSupport

Perhaps more interestingly, it shows that many files were relying on the
inclusion of StringRef.h to have the declaration from STLExtras.h. This
patch tries hard to patch relevant part of llvm-project impacted by this
hidden dependency removal.

Potential impact:
- "llvm/ADT/StringRef.h" no longer includes <memory>,
  "llvm/ADT/Optional.h" nor "llvm/ADT/STLExtras.h"

Related Discourse thread:
https://llvm.discourse.group/t/include-what-you-use-include-cleanup/5831




More information about the All-commits mailing list