SourceLocation.h (198092) | SourceLocation.h (200583) |
---|---|
1//===--- SourceLocation.h - Compact identifier for Source Files -*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 7 unchanged lines hidden (view full) --- 16 17#include <utility> 18#include <cassert> 19 20namespace llvm { 21 class MemoryBuffer; 22 class raw_ostream; 23 template <typename T> struct DenseMapInfo; | 1//===--- SourceLocation.h - Compact identifier for Source Files -*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 7 unchanged lines hidden (view full) --- 16 17#include <utility> 18#include <cassert> 19 20namespace llvm { 21 class MemoryBuffer; 22 class raw_ostream; 23 template <typename T> struct DenseMapInfo; |
24 template <typename T> struct isPodLike; |
|
24} 25 26namespace clang { 27 28class SourceManager; 29class FileEntry; 30 31/// FileID - This is an opaque identifier used by SourceManager which refers to --- 259 unchanged lines hidden (view full) --- 291 292 static unsigned getHashValue(clang::FileID S) { 293 return S.getHashValue(); 294 } 295 296 static bool isEqual(clang::FileID LHS, clang::FileID RHS) { 297 return LHS == RHS; 298 } | 25} 26 27namespace clang { 28 29class SourceManager; 30class FileEntry; 31 32/// FileID - This is an opaque identifier used by SourceManager which refers to --- 259 unchanged lines hidden (view full) --- 292 293 static unsigned getHashValue(clang::FileID S) { 294 return S.getHashValue(); 295 } 296 297 static bool isEqual(clang::FileID LHS, clang::FileID RHS) { 298 return LHS == RHS; 299 } |
299 300 static bool isPod() { return true; } | |
301 }; | 300 }; |
301 302 template <> 303 struct isPodLike<clang::SourceLocation> { static const bool value = true; }; 304 template <> 305 struct isPodLike<clang::FileID> { static const bool value = true; }; |
|
302 303} // end namespace llvm 304 305#endif | 306 307} // end namespace llvm 308 309#endif |