c++ - Doxygen and multiple #defines with the same name -


This is a small experiment that I tried to do with toxicogen. Say that I have 6 files:

h1.h:

  class A {public: int func1 (); }  

f1Data.h:

  #define val 10  

f1.cpp:

< Pre> #include "h1.h" #include "f1Data.h" int A: func1 () {return val; }

h2.h:

  #include "h1.h" category B: public A {public: int func2 (); };  

f2Data.h

  #define val 20  

f2.cpp

 < Code> #include "h2.h" #include "f2Data.h" int B :: func2 () {return value; }  

When I put GENERATE_XML = Yes and CALL_GRAPH = yes in my configuration file and run Doxygen, I see a bug in the generated XML file. Specifically, I see that the #defined value of references: a: func1 () has been given from f1Data.h instead of #defined value from f2Data.h. This happens when the macro's name is the same in both the files [in this case, val ].

Can anyone tell me that this is a bug on my part with the wrong use of doxygen or doxygen?

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -