Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Question about the CDT Parser's IASTMethod IsConstructor/Destructor Function
Question about the CDT Parser's IASTMethod IsConstructor/Destructor Function [message #145016] Tue, 10 May 2005 14:43 Go to next message
Eclipse UserFriend
Originally posted by: fliao2.yahoo.ca

When I run the following class through the parser,

class A
{
A();
~A();
};

I'll get 2 IASTMethods in the class' declarations. When I called the
IsConstructor() and IsDestructor() functions, I expected them to return
true for the corresponding contructor/destructor, but they always return
false, why is that?
Re: Question about the CDT Parser's IASTMethod IsConstructor/Destructor Function [message #145518 is a reply to message #145016] Tue, 17 May 2005 07:59 Go to previous message
Eclipse UserFriend
They should return true if you are using ParserMode.COMPLETE_PARSE.

"Felix" <fliao2@yahoo.ca> wrote in message
news:8e662de77a93ba1a918860a0868c9456$1@www.eclipse.org...
> When I run the following class through the parser,
>
> class A
> {
> A();
> ~A();
> };
>
> I'll get 2 IASTMethods in the class' declarations. When I called the
> IsConstructor() and IsDestructor() functions, I expected them to return
> true for the corresponding contructor/destructor, but they always return
> false, why is that?
>
Previous Topic:BuildInfo.getID() bug???
Next Topic:An inrernal errooccurred during:"Launching" ,when i was debugging...
Goto Forum:
  


Current Time: Sun Jun 08 17:27:37 EDT 2025

Powered by FUDForum. Page generated in 0.02719 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top