Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dcxx98-compat-flags.cpp4 template<typename T> int TemplateFn(T) { return 0; } in TemplateFn() function
7 …TemplateFn(S()); // expected-warning {{local type 'S' as template argument is incompatible with C+… in LocalTemplateArg()
10 int UnnamedTemplateArg = TemplateFn(obj_of_unnamed_type); // expected-warning {{unnamed type as tem…
H A Dcxx98-compat.cpp176 template<typename T> int TemplateFn(T) { return 0; } in TemplateFn() function
179 …TemplateFn(S()); // expected-warning {{local type 'S' as template argument is incompatible with C+… in LocalTemplateArg()
182 int UnnamedTemplateArg = TemplateFn(obj_of_unnamed_type); // expected-warning {{unnamed type as tem…
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DMacroToEnumCheck.cpp549 if (auto *TemplateFn = Result.Nodes.getNodeAs<FunctionTemplateDecl>("top")) { in check() local
550 if (TemplateFn->isThisDeclarationADefinition() && TemplateFn->hasBody()) in check()
551 Range = SourceRange{TemplateFn->getBeginLoc(), in check()
552 TemplateFn->getUnderlyingDecl()->getBodyRBrace()}; in check()