mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
Comment adjustments.
This commit is contained in:
parent
d9e8e6d74f
commit
d3ad2ee3d7
1 changed files with 4 additions and 3 deletions
|
@ -1486,10 +1486,11 @@ public class CPPTemplates {
|
||||||
* - If A is an array type, the pointer type produced by the array-to-pointer conversion is used instead
|
* - If A is an array type, the pointer type produced by the array-to-pointer conversion is used instead
|
||||||
* - If A is a function type, the pointer type produced by the function-to-pointer conversion is used instead
|
* - If A is a function type, the pointer type produced by the function-to-pointer conversion is used instead
|
||||||
* - If A is a cv-qualified type, the top level cv-qualifiers are ignored for type deduction
|
* - If A is a cv-qualified type, the top level cv-qualifiers are ignored for type deduction
|
||||||
* @param type
|
* @param type argument type
|
||||||
|
* @param parameterIsAReferenceType indicates whether template parameter is a reference type.
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
static private IType getArgumentTypeForDeduction(IType type, boolean pIsAReferenceType) {
|
static private IType getArgumentTypeForDeduction(IType type, boolean parameterIsAReferenceType) {
|
||||||
type = SemanticUtil.getSimplifiedType(type);
|
type = SemanticUtil.getSimplifiedType(type);
|
||||||
if (type instanceof ICPPReferenceType) {
|
if (type instanceof ICPPReferenceType) {
|
||||||
try {
|
try {
|
||||||
|
@ -1498,7 +1499,7 @@ public class CPPTemplates {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
IType result = type;
|
IType result = type;
|
||||||
if (!pIsAReferenceType) {
|
if (!parameterIsAReferenceType) {
|
||||||
try {
|
try {
|
||||||
if (type instanceof IArrayType) {
|
if (type instanceof IArrayType) {
|
||||||
result = new CPPPointerType(((IArrayType) type).getType());
|
result = new CPPPointerType(((IArrayType) type).getType());
|
||||||
|
|
Loading…
Add table
Reference in a new issue