Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Query regarding CodanApplication

On 24 June 2010 14:52, SANJAY GUPTA <gupta.sanjay@xxxxxxxxxxx> wrote:
> I am using CodanApplication to statically analyze the source. For this I first run headless build application to create workspace for the source folder. The org.eclipse.cdt.managedbuilder.core.headlessbuild creates default workspace in the user's home directory and the CodanApplication also looks for the same directory as workspace to find project name to analyze.

The workspace is set using the '-data' switch to the eclipse runtime. See:
http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/misc/runtime-options.html

Cheers,
James

>
> Is there any way to change CodanApplication to look some other directory as workspce than the default user's home ?
>
> One more question is,
> I am trying to get the references of a global variable through IASTTranslationUnit.getReferences() method. If the variable is used in a C type function, then its references are retrived. But if the variable is used in C++ function, then no references are retrieved. What may be the problem?
>
> Thanks and regards,
> Sanjay Gupta
>
>
>
>
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
>
>


Back to the top