From d47bce5700990fb3a4b8c1eded5959e06b09110b Mon Sep 17 00:00:00 2001 From: Joao Matos Date: Tue, 17 Nov 2020 21:36:42 +0000 Subject: [PATCH] Set include path as weell as file path when creating a new TU. --- src/AST/TranslationUnit.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/AST/TranslationUnit.cs b/src/AST/TranslationUnit.cs index 10ae69f0..ee5b2dfa 100644 --- a/src/AST/TranslationUnit.cs +++ b/src/AST/TranslationUnit.cs @@ -19,6 +19,7 @@ namespace CppSharp.AST public TranslationUnit(string file) : this() { FilePath = file; + IncludePath = file; } /// Contains the macros present in the unit.