1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-02 13:55:39 +02:00

Cosmetics.

Change-Id: I92903893c481734b42e9292fbc48f1e58d440895
This commit is contained in:
Sergey Prigogin 2017-03-13 19:16:45 -07:00
parent 581182ce98
commit fc6fad911b

View file

@ -414,7 +414,8 @@ public class CPPTemplates {
} }
private static IBinding instantiateFunctionTemplate(ICPPFunctionTemplate template, private static IBinding instantiateFunctionTemplate(ICPPFunctionTemplate template,
ICPPTemplateArgument[] arguments, CPPTemplateParameterMap tpMap, IASTNode point) throws DOMException { ICPPTemplateArgument[] arguments, CPPTemplateParameterMap tpMap, IASTNode point)
throws DOMException {
ICPPTemplateInstance instance= getInstance(template, arguments, false); ICPPTemplateInstance instance= getInstance(template, arguments, false);
if (instance != null) { if (instance != null) {
return instance; return instance;
@ -2297,7 +2298,8 @@ public class CPPTemplates {
* 14.8.2.3 Deducing conversion function template arguments * 14.8.2.3 Deducing conversion function template arguments
* @param point * @param point
*/ */
static ICPPFunction[] instantiateConversionTemplates(ICPPFunction[] functions, IType conversionType, IASTNode point) { static ICPPFunction[] instantiateConversionTemplates(ICPPFunction[] functions, IType conversionType,
IASTNode point) {
boolean checkedForDependentType= false; boolean checkedForDependentType= false;
ICPPFunction[] result= functions; ICPPFunction[] result= functions;
int i= 0; int i= 0;
@ -2318,7 +2320,8 @@ public class CPPTemplates {
} }
CPPTemplateParameterMap map= new CPPTemplateParameterMap(1); CPPTemplateParameterMap map= new CPPTemplateParameterMap(1);
try { try {
ICPPTemplateArgument[] args= TemplateArgumentDeduction.deduceForConversion(template, conversionType, map, point); ICPPTemplateArgument[] args=
TemplateArgumentDeduction.deduceForConversion(template, conversionType, map, point);
if (args != null) { if (args != null) {
IBinding instance= instantiateFunctionTemplate(template, args, map, point); IBinding instance= instantiateFunctionTemplate(template, args, map, point);
if (instance instanceof ICPPFunction) { if (instance instanceof ICPPFunction) {