xoofx/CppAst.NET

How to add custom include paths for CppParser?

jozhn opened this issue · 1 comments

IncludeFolders is readonly in CppParserOptions

The property is readonly, the list is not 🙂

  // Directly while creating it
  var options = new CppParserOptions()
  {
      IncludeFolders =
      {
          @"C:\Hello\MyPath"
      },
  };

  // By IncludeFolders.Add
  options.IncludeFolders.Add(@"C:\Another\Path");