Why QDoc don't work, it's really confusing.
-
Hi
Did you change config file to match ?
sample usesheaders.fileextensions = "*.hpp" but often its actually just "*.h"
-
@Stephen-INF
hmm odd. then
it seems clang have issue parsing the header
( QDoc uses clang from Qt 5.11)You did follow step to install it ?
https://doc.qt.io/qt-5/qdoc-guide-clang.html -
@Stephen-INF
That seems pretty ok.
However, since the other part of generation seems to work, then
it must be something with clang and /fn
But I cant guess what not right. -
@Stephen-INF
I might :) -
Re: [Why QDoc don't work](it's really confusing.)
I have the same issue with Qt5.12.0 on Windows. Does anyone have the solution for this?
Some notes - the enumerator was processed without problems:class MyClass
{
public:
enum Type
{
}
void foo();
}/*!
\enum MyClass::Type - parsed without errors
\value …
*//*!
\fn void MyClass::foo() - error: use of undeclared identifier 'MyClass' why???
*/ -
To fix the error, you need to switch to VS2015 Build Tool. For VS2017 I could not get the compiler to work. But for 2015 everything works as expected.
-