-
Notifications
You must be signed in to change notification settings - Fork 7
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
Missing 'inline' keyword, C# 7.0 Tuples #2
Comments
The |
HaHa, thank you sooooooo much!! |
It's been added, run |
Thanks, it's getting better. But I still got 2 warnings and 1 exception as follows:
Any thoughts about these? |
The first warning seems to be because of the brackets
I assume this is syntax for a tuple or something similar. Parsing this as a type has not been implemented. I will have a look at this... For the second warning, do you know which line this is coming from? maybe search your code for |
I guess for now you could write |
For the second warning, I am not sure which line induces this warning since the NSBone has been used in several places in 2 cs files as follows. First .cs file. namespace xx.xxxxx
{
//no-scale-bone
public struct NSBone
{
public NSBone(Vector3 v, Quaternion q)
{
localPos = v;
localRot = q;
}
public Vector3 localPos;
public Quaternion localRot;
}
internal class NSPair
{
public NSPair(Vector3 v, Quaternion q)
{
_original.localPos = v;
_original.localRot = q;
}
public NSBone _original;
public NSBone _lastSaved;
}
public class Data
{
.......
(NSBone, NSBone) NSBonePair(Vector3 v, Quaternion q)
{
return (new NSBone(v, q), new NSBone(v, q));
} Another .cs file namespace xx.xxxxx
{
......
public bool GetBindingPose(string name, out NSBone localTransform)
......
} Could those information sufficient for you? |
For the first warning, I will try what you said, thanks!! |
This is probably from the line: (NSBone, NSBone) NSBonePair(Vector3 v, Quaternion q) {...} So the same issue with the tuple short hand type but for the return type of the function. |
I've had a look at implementing the C# 7.0 tuples, but this seems to be quite complicated. So it will not be supported for now. |
Hi @rogerbarton , That's no problem. |
Another question is, do you know why the warning causes the exception? In usual case, only the errors could stop the execution. Is there any way to get the result, even there are warning message? |
Yes, its because a |
I should have probably checked this earlier, but doxygen does not yet support these C# 7.0 tuples, see doxygen/doxygen#7633. So the input for breathe is garbage.
I have no idea how to get this information, so for now I've just set it to point to the rst file/line. |
|
Thanks @xuhongxu96! Coming from C++ I simply assumed that C# would also have it. I will revert this. |
Hi @rogerbarton rogerbarton,
I am trying your solution and have some warning and exception, do you have any thought about this?
Originally posted by @Feng-Seng in breathe-doc/breathe#550 (comment)
The text was updated successfully, but these errors were encountered: