|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
include/llvm/Support/Allocator.h 81 template <typename T> T *Allocate(size_t Num = 1) {
82 return static_cast<T *>(Allocate(Num * sizeof(T), alignof(T)));
82 return static_cast<T *>(Allocate(Num * sizeof(T), alignof(T)));
88 !std::is_same<typename std::remove_cv<T>::type, void>::value, void>::type
89 Deallocate(T *Ptr, size_t Num = 1) {
90 Deallocate(static_cast<const void *>(Ptr), Num * sizeof(T));
include/llvm/Support/PointerLikeTypeTraits.h 56 static inline void *getAsVoidPointer(T *P) { return P; }
57 static inline T *getFromVoidPointer(void *P) { return static_cast<T *>(P); }
59 enum { NumLowBitsAvailable = detail::ConstantLog2<alignof(T)>::value };
91 typedef PointerLikeTypeTraits<T *> NonConst;
93 static inline const void *getAsVoidPointer(const T *P) {
96 static inline const T *getFromVoidPointer(const void *P) {
tools/clang/include/clang/Basic/SourceManager.h 161 ContentCache(const ContentCache &RHS)
174 ContentCache &operator=(const ContentCache& RHS) = delete;
174 ContentCache &operator=(const ContentCache& RHS) = delete;
237 static_assert(alignof(ContentCache) >= 8,
269 llvm::PointerIntPair<const ContentCache*, 3, CharacteristicKind>
278 static FileInfo get(SourceLocation IL, const ContentCache *Con,
294 const ContentCache *getContentCache() const {
610 llvm::DenseMap<const FileEntry*, SrcMgr::ContentCache*> FileInfos;
648 std::vector<SrcMgr::ContentCache*> MemBufferInfos;
700 mutable SrcMgr::ContentCache *LastLineNoContentCache;
740 mutable std::unique_ptr<SrcMgr::ContentCache> FakeContentCacheForRecovery;
834 const SrcMgr::ContentCache *IR =
844 const SrcMgr::ContentCache *IR = getOrCreateContentCache(
1020 const SrcMgr::ContentCache *Content = Entry.getFile().getContentCache();
1033 const SrcMgr::ContentCache *Content = Entry.getFile().getContentCache();
1042 const SrcMgr::ContentCache *Content = sloc.getFile().getContentCache();
1663 llvm::DenseMap<const FileEntry*, SrcMgr::ContentCache*>::const_iterator;
1769 const SrcMgr::ContentCache *getFakeContentCacheForRecovery() const;
1827 FileID createFileID(const SrcMgr::ContentCache *File, StringRef Filename,
1832 const SrcMgr::ContentCache *
1837 const SrcMgr::ContentCache *
tools/clang/lib/AST/ASTImporter.cpp 8444 const SrcMgr::ContentCache *Cache = FromSLoc.getFile().getContentCache();
tools/clang/lib/Basic/SourceManager.cpp 365 for (llvm::DenseMap<const FileEntry*, SrcMgr::ContentCache*>::iterator
396 auto *Clone = new (ContentCacheAlloc.Allocate<ContentCache>()) ContentCache;
396 auto *Clone = new (ContentCacheAlloc.Allocate<ContentCache>()) ContentCache;
396 auto *Clone = new (ContentCacheAlloc.Allocate<ContentCache>()) ContentCache;
413 SrcMgr::ContentCache *&Slot = FileInfos[FileInfo.first];
422 const ContentCache *
428 ContentCache *&Entry = FileInfos[FileEnt];
432 Entry = ContentCacheAlloc.Allocate<ContentCache>();
440 new (Entry) ContentCache(FileEnt);
442 new (Entry) ContentCache(OverridenFilesKeepOriginalName ? FileEnt
446 new (Entry) ContentCache(FileEnt);
457 const ContentCache *
461 ContentCache *Entry = ContentCacheAlloc.Allocate<ContentCache>();
461 ContentCache *Entry = ContentCacheAlloc.Allocate<ContentCache>();
462 new (Entry) ContentCache();
512 const SrcMgr::ContentCache *
515 FakeContentCacheForRecovery = std::make_unique<SrcMgr::ContentCache>();
566 FileID SourceManager::createFileID(const ContentCache *File, StringRef Filename,
654 const SrcMgr::ContentCache *IR = getOrCreateContentCache(File);
662 const SrcMgr::ContentCache *IR = getOrCreateContentCache(SourceFile);
698 const SrcMgr::ContentCache *CC = getOrCreateContentCache(File);
1232 ComputeLineNumbers(DiagnosticsEngine &Diag, ContentCache *FI,
1235 static void ComputeLineNumbers(DiagnosticsEngine &Diag, ContentCache *FI,
1290 ContentCache *Content;
1461 const SrcMgr::ContentCache *C = FI.getContentCache();
1600 const ContentCache *MainContentCache =
1656 ContentCache *Content
tools/clang/lib/Lex/ScratchBuffer.cpp 40 auto *ContentCache = const_cast<SrcMgr::ContentCache *>(
tools/clang/lib/Rewrite/Rewriter.cpp 266 const SrcMgr::ContentCache *
370 const SrcMgr::ContentCache *
tools/clang/lib/Serialization/ASTReader.cpp 1540 const SrcMgr::ContentCache *ContentCache
tools/clang/lib/Serialization/ASTWriter.cpp 1812 const SrcMgr::ContentCache *Cache = File.getContentCache();
2307 const SrcMgr::ContentCache *Cache = SLoc->getFile().getContentCache();
2325 const SrcMgr::ContentCache *Content = File.getContentCache();
tools/clang/tools/clang-format/ClangFormat.cpp 390 const char *InvalidBOM = SrcMgr::ContentCache::getInvalidBOM(BufStr);
tools/clang/tools/extra/clang-tidy/ExpandModularHeadersPPCallbacks.cpp 24 const SrcMgr::ContentCache &ContentCache,
usr/include/c++/7.4.0/bits/unique_ptr.h 68 default_delete(const default_delete<_Up>&) noexcept { }
72 operator()(_Tp* __ptr) const
74 static_assert(!is_void<_Tp>::value,
76 static_assert(sizeof(_Tp)>0,
122 using type = _Up*;
137 using pointer = typename _Ptr<_Tp, _Dp>::type;
161 typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type;
163 __uniq_ptr_impl<_Tp, _Dp> _M_t;
166 using pointer = typename __uniq_ptr_impl<_Tp, _Dp>::pointer;
167 using element_type = _Tp;
252 unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept
297 __safe_conversion_up<_Up, _Ep>,
301 operator=(unique_ptr<_Up, _Ep>&& __u) noexcept
811 { typedef unique_ptr<_Tp> __single_object; };
823 inline typename _MakeUniq<_Tp>::__single_object
825 { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); }
usr/include/c++/7.4.0/type_traits 215 : public __is_void_helper<typename remove_cv<_Tp>::type>::type
581 : public __or_<is_lvalue_reference<_Tp>,
582 is_rvalue_reference<_Tp>>::type
601 : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
601 : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
602 is_void<_Tp>>>::type
638 : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
638 : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
1554 { typedef _Tp type; };
1563 { typedef _Tp type; };
1574 remove_const<typename remove_volatile<_Tp>::type>::type type;
1645 { typedef _Tp& type; };
1650 : public __add_lvalue_reference_helper<_Tp>