~pali/llvm/clang-tools-extra-trunk

« back to all changes in this revision

Viewing changes to clangd/FileDistance.h

  • Committer: rnk
  • Date: 2019-10-19 00:48:11 UTC
  • Revision ID: svn-v4:91177308-0d34-0410-b5e6-96231b3b80d8:clang-tools-extra/trunk:375316
Move endian constant from Host.h to SwapByteOrder.h, prune include

Works on this dependency chain:
  ArrayRef.h ->
  Hashing.h -> --CUT--
  Host.h ->
  StringMap.h / StringRef.h

ArrayRef is very popular, but Host.h is rarely needed. Move the
IsBigEndianHost constant to SwapByteOrder.h. Clients of that header are
more likely to need it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
#include "llvm/ADT/DenseMap.h"
44
44
#include "llvm/ADT/DenseMapInfo.h"
45
45
#include "llvm/ADT/SmallString.h"
 
46
#include "llvm/ADT/StringMap.h"
46
47
#include "llvm/ADT/StringRef.h"
47
48
#include "llvm/Support/Allocator.h"
48
49
#include "llvm/Support/Path.h"