mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 09:25:31 +02:00
Fix 140297 - CCEs in CPPVisitor fixed by wrapping in instanceof.
This commit is contained in:
parent
006a05abdc
commit
0bdb8b262e
1 changed files with 5 additions and 1 deletions
|
@ -616,7 +616,11 @@ public class CPPVisitor {
|
|||
|
||||
ICPPASTCompositeTypeSpecifier clsTypeSpec;
|
||||
try {
|
||||
clsTypeSpec = (ICPPASTCompositeTypeSpecifier) ((ICPPClassScope)containingScope).getPhysicalNode();
|
||||
IASTNode node = ((ICPPClassScope)containingScope).getPhysicalNode();
|
||||
if (node instanceof ICPPASTCompositeTypeSpecifier)
|
||||
clsTypeSpec = (ICPPASTCompositeTypeSpecifier)node;
|
||||
else
|
||||
return false;
|
||||
} catch ( DOMException e ) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue