Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: frithjofh on March 20, 2015, 07:40:03 pm

Title: question about specific function in cbproject.h
Post by: frithjofh on March 20, 2015, 07:40:03 pm
Hi everyone,

I did myself some research, but to be really sure, i would like a developers comment on this, i someone would be so kind.

The following function is from cbprojec.h :

Code
          /** Provides an easy way to iterate all the files belonging in this target.
          * @return A list of files belonging in this target.
          */
        virtual FilesList& GetFilesList(){ return m_Files; }

My question is, if this file returns all files of a project, all corresponding -Includes included? I guess it does, but maybe I am overlooking something... just to be sure...

Many thanks for any feedback

regards

frithjofh
Title: Re: question about specific function in cbproject.h
Post by: oBFusCATed on March 20, 2015, 08:29:50 pm
This function returns all file objects that you see in the project tree in the management -> projects tab.
It can return sources files, headers, some other files.

I'm not sure I understand the question about the includes, but probably this function doesn't return the include paths.
Title: Re: question about specific function in cbproject.h
Post by: frithjofh on March 20, 2015, 08:59:58 pm
i probably didn’t express myself very well...

... but the answer suits me perfectly. It was exactly what i needed to know, many thanks.

For the confusing part of my original question: your answer pointed out an error I made reasoning about the function in the first place, so my question really became pointless... :)

thx