-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
export "something" { } wrong parsing #8838
Comments
Is the VDSP the VisualDSP compiler from Analogous Devices (which version) or is it another compiler? Is the meaning of Best way to go is to write a small filter, see |
You are right! It is VisualDSP++ compiler from Analog Devices. And there is extern string-literal declaration where string-literal - The name of the required language linkage. The standard guarantes only two language linkages to be supported: "C" and "C++" I mean it does not restrict existing of some other language linkage But I thought Doxygen ignores language linkage at all. It's useless for Doxygen. I was pretty surprised it was parsed as a variable declaration I've got your idea to use |
The
|
Anyway |
I see I looked (again) in the C++ standard (after rereading your comment: "extern string-literal declaration where string-literal - The name of the required language linkage. The standard guarantes only two language linkages to be supported: "C" and "C++" I mean it does not restrict existing of some other language linkage ") and see in paragraph 9.11 Linkage Specification:
So it indeed looks like "OldAsmCall" should be supported. |
According to the C++ standard "C" and "C++" have to be supported and other linkage types: "Use of a string-literal other than "C" or "C++" is conditionally-supported, with implementation-defined semantics."
I've just pushed a proposed patch, pull request #8842 |
issue #8838 export "something" { } wrong parsing
Code has been integrated in master on GitHub (please don't close the issue as this will be done at the moment of an official release). |
This issue was previously marked 'fixed but not released', |
Describe the bug
I have something like this
in my sources (old VDSP compiler). Doxygen parse this as extern variable
OldAsmCall
with intializer{ void func1()
and normal functionvoid func2()
extern "C" { } or "C++" do parsed normally
Expected behavior
Expected to see extern void func1() and extern void func2()
Screenshots
Version
Tested 1.9.2
The text was updated successfully, but these errors were encountered: