/external/libchrome/base/memory/ |
D | singleton_unittest.cc | 30 struct Trait; 33 return Singleton<Init5Singleton, Trait>::get(); in GetInstance() 39 struct Init5Singleton::Trait : public DefaultSingletonTraits<Init5Singleton> { struct in base::__anon26575e8a0111::Init5Singleton 72 struct Trait : public CallbackTrait<CallbackSingletonWithNoLeakTrait> { }; struct in base::__anon26575e8a0111::CallbackSingletonWithNoLeakTrait 77 return Singleton<CallbackSingletonWithNoLeakTrait, Trait>::get(); in GetInstance() 83 struct Trait : public CallbackTrait<CallbackSingletonWithLeakTrait> { struct in base::__anon26575e8a0111::CallbackSingletonWithLeakTrait 90 return Singleton<CallbackSingletonWithLeakTrait, Trait>::get(); in GetInstance() 96 struct Trait; 101 return Singleton<CallbackSingletonWithStaticTrait, Trait>::get(); in GetInstance() 105 struct CallbackSingletonWithStaticTrait::Trait struct in base::__anon26575e8a0111::CallbackSingletonWithStaticTrait [all …]
|
/external/libcxx/test/support/ |
D | poisoned_hash_helper.hpp | 211 template <template <class> class Trait, bool Expect = true> 213 static_assert(Trait<First>::value == Expect, ""); in assertTrait() 214 return TypeList<Rest...>::template assertTrait<Trait, Expect>(); in assertTrait() 217 template <class Trait> 219 Trait::template apply<First>(); in applyTrait() 220 TypeList<Rest...>::template applyTrait<Trait>(); in applyTrait() 226 template <template <class> class Trait, bool Expect = true> 230 template <class Trait>
|
/external/clang/test/SemaObjCXX/ |
D | arc-type-traits.mm | 11 #define TRAIT_IS_TRUE(Trait, Type) char JOIN2(Trait,__LINE__)[Trait(Type)? 1 : -1] 12 #define TRAIT_IS_FALSE(Trait, Type) char JOIN2(Trait,__LINE__)[Trait(Type)? -1 : 1] 13 #define TRAIT_IS_TRUE_2(Trait, Type1, Type2) char JOIN2(Trait,__LINE__)[Trait(Type1, Type2)? 1 : -1] 14 #define TRAIT_IS_FALSE_2(Trait, Type1, Type2) char JOIN2(Trait,__LINE__)[Trait(Type1, Type2)? -1 : …
|
/external/clang/test/Misc/ |
D | diag-template-diffing.cpp | 901 template <typename> struct Trait { struct 908 template <typename T, int = Trait<T>::V > struct A {}; 909 template <typename T, typename = Trait<T>::Ty > struct B {}; 910 template <typename T, int& = Trait<T>::I > struct C {};
|
/external/clang/lib/Serialization/ |
D | GlobalModuleIndex.cpp | 732 IdentifierIndexWriterTrait Trait; in writeIndex() local 738 Generator.insert(I->first(), I->second, Trait); in writeIndex() 749 BucketOffset = Generator.Emit(Out, Trait); in writeIndex()
|
D | ASTWriter.cpp | 2984 ASTMethodPoolTrait Trait(*this); in WriteSelectors() local 3023 Generator.insert(S, Data, Trait); in WriteSelectors() 3031 ASTMethodPoolTrait Trait(*this); in WriteSelectors() local 3035 BucketOffset = Generator.Emit(Out, Trait); in WriteSelectors() 3299 ASTIdentifierTableTrait Trait( in WriteIdentifierTable() local 3315 if (Trait.isInterestingNonMacroIdentifier(II)) in WriteIdentifierTable() 3329 (Trait.needDecls() && in WriteIdentifierTable() 3331 Generator.insert(II, ID, Trait); in WriteIdentifierTable() 3342 BucketOffset = Generator.Emit(Out, Trait); in WriteIdentifierTable() 3542 ASTDeclContextNameLookupTrait Trait(*this); in GenerateNameLookupTable() local [all …]
|
D | ASTReader.cpp | 1733 ASTIdentifierLookupTrait Trait(IdTable->getInfoObj().getReader(), M, in operator ()() local 1737 IdTable->find_hashed(Name, NameHash, &Trait); in operator ()() 3559 ASTIdentifierLookupTrait Trait(*this, F); in ReadAST() local 3560 auto KeyDataLen = Trait.ReadKeyDataLength(Data); in ReadAST() 3561 auto Key = Trait.ReadKey(Data, KeyDataLen.first); in ReadAST() 3570 auto ID = Trait.ReadIdentifierID(Data + KeyDataLen.first); in ReadAST() 7643 ASTSelectorLookupTrait Trait(*this, M); in DecodeSelector() local 7646 Trait.ReadKey(M.SelectorLookupTableData + M.SelectorOffsets[Idx], 0); in DecodeSelector()
|
/external/clang/lib/Sema/ |
D | TreeTransform.h | 2622 ExprResult RebuildTypeTrait(TypeTrait Trait, in RebuildTypeTrait() argument 2626 return getSema().BuildTypeTrait(Trait, StartLoc, Args, RParenLoc); in RebuildTypeTrait() 2633 ExprResult RebuildArrayTypeTrait(ArrayTypeTrait Trait, in RebuildArrayTypeTrait() argument 2638 return getSema().BuildArrayTypeTrait(Trait, StartLoc, TSInfo, DimExpr, RParenLoc); in RebuildArrayTypeTrait() 2645 ExprResult RebuildExpressionTrait(ExpressionTrait Trait, in RebuildExpressionTrait() argument 2649 return getSema().BuildExpressionTrait(Trait, StartLoc, Queried, RParenLoc); in RebuildExpressionTrait()
|
/external/clang/docs/ |
D | LanguageExtensions.rst | 946 Checks for Type Trait Primitives
|