doxygen / doxygen

Official doxygen git repository
https://www.doxygen.org
GNU General Public License v2.0
5.71k stars 1.27k forks source link

Warning about missing item in INCLUDE_PATH #7021

Closed albert-github closed 5 years ago

albert-github commented 5 years ago

Doxygen version 1.8.15 and current master (June 2, 2019)

Test case: example.zip

When having 2 include files and the second file is included inside curly brackets we can get the message like:

Include_2.h:9: warning: include file stdio.h not found, perhaps you forgot to add its directory to INCLUDE_PATH?

First include file (Include.h):

#ifndef Include_header
#define Include_header

#include <stdio.h>

namespace my_space
{
  #include <Include_2.h>
}
#endif // Include_header

Second include file Include_2.h:

#ifndef Include_2_h
#define Include_2_h

#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif

#include <stdio.h>

#if defined(__cplusplus) || defined(c_plusplus)
}
#endif

#endif

some small notes:

albert-github commented 5 years ago

I've just pushed a proposed patch, pull request #7022

albert-github commented 5 years ago

Code has been integrated in master on github (please don't close the issue as this will be done at the moment of a release).

doxygen commented 5 years ago

This issue was previously marked 'fixed but not released', which means it should be fixed in doxygen version 1.8.16. Please verify if this is indeed the case. Reopen the issue if you think it is not fixed and please include any additional information that you think can be relevant (preferably in the form of a self-contained example).

sparist commented 4 years ago

I am still seeing this in 1.8.17.

Are there any workarounds?

albert-github commented 4 years ago

I See the issue with version 1.8.15 (the version against which the this issue was posted), but in the versions 1.8.16 and 1.8.17 I don't see the warning anymore.

@spartist