We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5d4a5d commit 568b68bCopy full SHA for 568b68b
src/AST/TranslationUnit.cs
@@ -62,7 +62,12 @@ public string FileRelativeDirectory
62
{
63
get
64
65
- if (fileRelativeDirectory != null) return fileRelativeDirectory;
+ if (fileRelativeDirectory != null)
66
+ return fileRelativeDirectory;
67
+
68
+ if (IncludePath == null)
69
+ return string.Empty;
70
71
var path = IncludePath.Replace('\\', '/');
72
var index = path.LastIndexOf('/');
73
return fileRelativeDirectory = path.Substring(0, index);
0 commit comments