Rename method TemplateParametersInDeclaration => getTemplateParametersInDeclaration
This commit is contained in:
parent
42bcb6d417
commit
caf9f22015
|
@ -806,7 +806,7 @@ void TemplateSimplifier::expandTemplate(
|
||||||
if (tok3->str()=="template") {
|
if (tok3->str()=="template") {
|
||||||
if (tok3->next() && tok3->next()->str()=="<") {
|
if (tok3->next() && tok3->next()->str()=="<") {
|
||||||
std::vector<const Token *> localTypeParametersInDeclaration;
|
std::vector<const Token *> localTypeParametersInDeclaration;
|
||||||
TemplateParametersInDeclaration(tok3->tokAt(2), localTypeParametersInDeclaration);
|
getTemplateParametersInDeclaration(tok3->tokAt(2), localTypeParametersInDeclaration);
|
||||||
if (localTypeParametersInDeclaration.size() != typeParametersInDeclaration.size())
|
if (localTypeParametersInDeclaration.size() != typeParametersInDeclaration.size())
|
||||||
inTemplateDefinition = false; // Partial specialization
|
inTemplateDefinition = false; // Partial specialization
|
||||||
else
|
else
|
||||||
|
@ -1259,7 +1259,7 @@ bool TemplateSimplifier::simplifyCalculations(Token *_tokens)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Token * TemplateSimplifier::TemplateParametersInDeclaration(
|
const Token * TemplateSimplifier::getTemplateParametersInDeclaration(
|
||||||
const Token * tok,
|
const Token * tok,
|
||||||
std::vector<const Token *> & typeParametersInDeclaration)
|
std::vector<const Token *> & typeParametersInDeclaration)
|
||||||
{
|
{
|
||||||
|
@ -1286,7 +1286,7 @@ bool TemplateSimplifier::simplifyTemplateInstantiations(
|
||||||
|
|
||||||
// Contains tokens such as "T"
|
// Contains tokens such as "T"
|
||||||
std::vector<const Token *> typeParametersInDeclaration;
|
std::vector<const Token *> typeParametersInDeclaration;
|
||||||
const Token * const tok = TemplateParametersInDeclaration(templateDeclaration.token->tokAt(2), typeParametersInDeclaration);
|
const Token * const tok = getTemplateParametersInDeclaration(templateDeclaration.token->tokAt(2), typeParametersInDeclaration);
|
||||||
|
|
||||||
// bail out if the end of the file was reached
|
// bail out if the end of the file was reached
|
||||||
if (!tok)
|
if (!tok)
|
||||||
|
|
|
@ -146,7 +146,7 @@ public:
|
||||||
* @return template < typename T, typename S >
|
* @return template < typename T, typename S >
|
||||||
* ^ return
|
* ^ return
|
||||||
*/
|
*/
|
||||||
static const Token * TemplateParametersInDeclaration(
|
static const Token * getTemplateParametersInDeclaration(
|
||||||
const Token * tok,
|
const Token * tok,
|
||||||
std::vector<const Token *> & typeParametersInDeclaration);
|
std::vector<const Token *> & typeParametersInDeclaration);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue