Home
last modified time | relevance | path

Searched refs:TemplateValue (Results 1 – 1 of 1) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/
H A Downing-memory.cpp346 struct TemplateValue { struct
347 TemplateValue() = default;
348 TemplateValue(T t) : val{t} {} in TemplateValue() argument
369 TemplateValue<gsl::owner<int *>> Owner0; // Ok, T should be owner, but is int* in test_templates() argument
371 TemplateValue<gsl::owner<int *>> Owner1(new int(42)); // Ok, T should be owner, but is int* in test_templates()
378TemplateValue<int *> NonOwner1(new int(42)); // Bad, T is int *, hence dynamic memory to non-… in test_templates()