mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 305978: Fix encoding of deleted function flag.
This commit is contained in:
parent
28d0d546c0
commit
04b85fcd5b
2 changed files with 5 additions and 2 deletions
|
@ -100,7 +100,7 @@ class PDOMCPPFunction extends PDOMCPPBinding implements ICPPFunction, IPDOMOverl
|
|||
}
|
||||
|
||||
private short getAnnotation(ICPPFunction function) throws DOMException {
|
||||
int annot= PDOMCPPAnnotation.encodeAnnotation(function);
|
||||
int annot= PDOMCPPAnnotation.encodeAnnotation(function) & 0xff;
|
||||
if (function.hasParameterPack()) {
|
||||
annot |= (1<<ANNOT_PARAMETER_PACK);
|
||||
}
|
||||
|
|
|
@ -137,10 +137,13 @@ class PDOMCPPFunctionSpecialization extends PDOMCPPSpecialization implements ICP
|
|||
}
|
||||
|
||||
private short getAnnotation(ICPPFunction astFunction) throws DOMException {
|
||||
int annot= PDOMCPPAnnotation.encodeAnnotation(astFunction);
|
||||
int annot= PDOMCPPAnnotation.encodeAnnotation(astFunction) & 0xff;
|
||||
if (astFunction.hasParameterPack()) {
|
||||
annot |= (1 << ANNOT_PARAMETER_PACK);
|
||||
}
|
||||
if (astFunction.isDeleted()) {
|
||||
annot |= (1<<ANNOT_IS_DELETED);
|
||||
}
|
||||
return (short) annot;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue