Author Topic: No functions parsed in this file...  (Read 6738 times)

Offline adfm

  • Multiple posting newcomer
  • *
  • Posts: 21
No functions parsed in this file...
« on: February 18, 2011, 12:52:57 pm »
Hello all,

I am getting a "No functions parsed in this file..." error in a couple of my project files and I cant figure out why. They are standard c++ files (cpp and hpp), with class standard definitions.

I'm using the latest debug branch nightly and this is a problem that has been occurring for a while. Any ideas?

Cheers

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: No functions parsed in this file...
« Reply #1 on: February 18, 2011, 01:13:39 pm »
Can you post some code? (full compilable test project is best)
Probably there is a problem in the parser if it happens only on particular files....

Also preprocessor and template parsing is not complete, so if your files use these two standard features, you'll have problems with the CC.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline adfm

  • Multiple posting newcomer
  • *
  • Posts: 21
Re: No functions parsed in this file...
« Reply #2 on: February 18, 2011, 01:49:47 pm »
hey,

I really can't send you anything. This only happens to one of my project (which is quite big), but only happens in two files that implement some classes.

It's all pretty standard stuff, but I can't get a grasp on why it is happening or when it started happening. When I do "Select function" it just shows the warning instead of the window with the functions in the current file.

Any options in the c++ parser? Code completion?

Cheers

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: No functions parsed in this file...
« Reply #3 on: February 18, 2011, 03:53:03 pm »
I really can't send you anything. This only happens to one of my project (which is quite big), but only happens in two files that implement some classes.
Can you separate these two files in an another project, then see if the problem is there?
If the problem is still there, modify the code, so it doesn't include any sensitive/internal info and post it...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline adfm

  • Multiple posting newcomer
  • *
  • Posts: 21
Re: No functions parsed in this file...
« Reply #4 on: February 18, 2011, 06:17:11 pm »
OK,

I just copied two of the files that I get the error in.

I simply added them to a console project and I get the same error. In the main I can get the functions, in the other files... I can't

The following link has the test project I used to test this.

http://dl.dropbox.com/u/1592828/functions.zip

Thanks for the help ;)

Cheers

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5916
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: No functions parsed in this file...
« Reply #5 on: February 19, 2011, 06:06:53 am »
OK,

I just copied two of the files that I get the error in.

I simply added them to a console project and I get the same error. In the main I can get the functions, in the other files... I can't

The following link has the test project I used to test this.

http://dl.dropbox.com/u/1592828/functions.zip

Thanks for the help ;)

Cheers

I just download this package, but what is the exact step to produce this bug????
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline adfm

  • Multiple posting newcomer
  • *
  • Posts: 21
Re: No functions parsed in this file...
« Reply #6 on: February 21, 2011, 10:53:50 am »
Hello,

as you noticed, the project doesn't even compile. If you open one of the files Item.cpp ot Item.hpp and try to do a "Goto function" the message box with the warning "no functions parsed..." will pop up. Nothing is parsed and I have no idea why!

BTW, how can I reparse the project?

Cheers

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5916
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: No functions parsed in this file...
« Reply #7 on: February 21, 2011, 11:12:47 am »
as you noticed, the project doesn't even compile. If you open one of the files Item.cpp ot Item.hpp and try to do a "Goto function"
Where did you right click and select "Goto function xxxx"?
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline adfm

  • Multiple posting newcomer
  • *
  • Posts: 21
Re: No functions parsed in this file...
« Reply #8 on: February 21, 2011, 11:20:55 am »
try the menu tree
 :: Search -> goto function...

you can also check the code completion toolbar. It wont show anything as well.

Cheers

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5916
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: No functions parsed in this file...
« Reply #9 on: February 21, 2011, 11:27:33 am »
your code has grammar error. see:
Code
#include "Item.hpp"
#include "Tax.hpp"
#include "Helper.hpp"
#include "DataBase.hpp"

#include "Screen.hpp"
#include "Language.hpp"
#include "http\HttpUtils.h"
#include "Socketwrapper.h""
two quote at the last line, remove it will solve all the problem.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline adfm

  • Multiple posting newcomer
  • *
  • Posts: 21
Re: No functions parsed in this file...
« Reply #10 on: February 21, 2011, 12:26:35 pm »
:8

Thanks, that was just one of those things that I was just looking at but... didn't see ;)

I just tend to add the last comma and code completion does that for me :P

Ollydbg thanks for the help. I appreciate it ;)

Cheers

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: No functions parsed in this file...
« Reply #11 on: February 21, 2011, 01:16:26 pm »
Does the file compile? (it will be pretty strange if it does)

I tend to add double quotes, too, but I think I'm getting used to it...
Probably the second quote should be ignored :)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]