Skip to content

Commit

Permalink
Version check skip option and patch verison leniency (#368)
Browse files Browse the repository at this point in the history
* Add option to skip Clang and ClangSharp version checks, along with version patch leniency
* Fix where I check for the version
* Remove skip version check params
* Update version check
* Update sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs

Co-authored-by: Tanner Gooding <tagoo@outlook.com>
  • Loading branch information
Beyley and tannergooding authored Aug 12, 2022
1 parent ed9de28 commit 35ad294
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ public sealed partial class PInvokeGenerator : IDisposable
private static readonly Encoding s_defaultStreamWriterEncoding = new UTF8Encoding(encoderShouldEmitUTF8Identifier: false, throwOnInvalidBytes: true);
private static readonly Regex s_needsSystemSupportRegex = new Regex(@"\b(?:Guid|IntPtr|UIntPtr)\b", RegexOptions.Compiled);

private const string ExpectedClangVersion = "14.0.0";
private const string ExpectedClangSharpVersion = "14.0.0";
private const string ExpectedClangVersion = "version 14.0";
private const string ExpectedClangSharpVersion = "version 14.0";

private readonly CXIndex _index;
private readonly OutputBuilderFactory _outputBuilderFactory;
Expand Down

0 comments on commit 35ad294

Please sign in to comment.