Skip to content

Commit 8137f82

Browse files
committed
Exposed MacroInfo::isUsedForHeaderGuard and MacroInfo::getNumTokens on PathogenMacroInformation.
1 parent 0c70032 commit 8137f82

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ClangSharp.Pathogen/PathogenMacroInformation.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,19 @@ public unsafe readonly struct PathogenMacroInformation
1515
private readonly byte _IsFunctionLike;
1616
private readonly byte _IsBuiltinMacro;
1717
private readonly byte _HasCommaPasting;
18+
private readonly byte _IsUsedForHeaderGuard;
1819
public readonly PathogenMacroVardicKind VardicKind;
1920
public readonly int ParameterCount;
2021
private readonly byte** ParameterNames;
2122
private readonly ulong* ParameterNameLengths;
23+
public readonly int TokenCount;
2224

2325
public string Name => Encoding.UTF8.GetString(_Name, checked((int)_NameLength));
2426
public bool WasUndefined => _WasUndefined != 0;
2527
public bool IsFunctionLike => _IsFunctionLike != 0;
2628
public bool IsBuiltinMacro => _IsBuiltinMacro != 0;
2729
public bool HasCommaPasting => _HasCommaPasting != 0;
30+
public bool IsUsedForHeaderGuard => _IsUsedForHeaderGuard != 0;
2831

2932
public string GetParameterName(int index)
3033
{

0 commit comments

Comments
 (0)