You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When cldoc generates documentation for header files with the .hpp ending, they are treated as if they were .c/.cpp/.cxx files.
This is a problem, because Clang generates a warning when it encounters a #pragma once directive in a main file, and due to issue #3, this causes cldoc to exit immediately.
The text was updated successfully, but these errors were encountered:
Having fixed issue #3, I've started looking at this issue. Unfortunately, I don't really see any way for libclang to indicate it should parse something as a header. Even worse, you can't rely only on a files extension to indicate whether it's a header or not. The "best" solution to this problem is to have a dummy .cpp file which includes the corresponding header, but it goes against the idea of cldoc to require zero modifications to the original source.
When cldoc generates documentation for header files with the .hpp ending, they are treated as if they were .c/.cpp/.cxx files.
This is a problem, because Clang generates a warning when it encounters a #pragma once directive in a main file, and due to issue #3, this causes cldoc to exit immediately.
The text was updated successfully, but these errors were encountered: