-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding support for parsing expressions attached to EnumConstantDecl #45
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ public enum CXCallingConv | |
CXCallingConv_X86RegCall = 8, | ||
CXCallingConv_IntelOclBicc = 9, | ||
CXCallingConv_Win64 = 10, | ||
CXCallingConv_X86_64Win64 = 10, | ||
CXCallingConv_X86_64Win64 = CXCallingConv_Win64, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. An example of traversing a declaration reference expression |
||
CXCallingConv_X86_64SysV = 11, | ||
CXCallingConv_X86VectorCall = 12, | ||
CXCallingConv_Swift = 13, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,10 @@ namespace ClangSharp | |
{ | ||
public enum CXCodeComplete_Flags | ||
{ | ||
CXCodeComplete_IncludeMacros = 1, | ||
CXCodeComplete_IncludeCodePatterns = 2, | ||
CXCodeComplete_IncludeBriefComments = 4, | ||
CXCodeComplete_SkipPreamble = 8, | ||
CXCodeComplete_IncludeCompletionsWithFixIts = 16, | ||
CXCodeComplete_IncludeMacros = 0x01, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. An example of traversing an integer literal expression |
||
CXCodeComplete_IncludeCodePatterns = 0x02, | ||
CXCodeComplete_IncludeBriefComments = 0x04, | ||
CXCodeComplete_SkipPreamble = 0x08, | ||
CXCodeComplete_IncludeCompletionsWithFixIts = 0x10, | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,29 +3,29 @@ namespace ClangSharp | |
public enum CXCompletionContext | ||
{ | ||
CXCompletionContext_Unexposed = 0, | ||
CXCompletionContext_AnyType = 1, | ||
CXCompletionContext_AnyValue = 2, | ||
CXCompletionContext_ObjCObjectValue = 4, | ||
CXCompletionContext_ObjCSelectorValue = 8, | ||
CXCompletionContext_CXXClassTypeValue = 16, | ||
CXCompletionContext_DotMemberAccess = 32, | ||
CXCompletionContext_ArrowMemberAccess = 64, | ||
CXCompletionContext_ObjCPropertyAccess = 128, | ||
CXCompletionContext_EnumTag = 256, | ||
CXCompletionContext_UnionTag = 512, | ||
CXCompletionContext_StructTag = 1024, | ||
CXCompletionContext_ClassTag = 2048, | ||
CXCompletionContext_Namespace = 4096, | ||
CXCompletionContext_NestedNameSpecifier = 8192, | ||
CXCompletionContext_ObjCInterface = 16384, | ||
CXCompletionContext_ObjCProtocol = 32768, | ||
CXCompletionContext_ObjCCategory = 65536, | ||
CXCompletionContext_ObjCInstanceMessage = 131072, | ||
CXCompletionContext_ObjCClassMessage = 262144, | ||
CXCompletionContext_ObjCSelectorName = 524288, | ||
CXCompletionContext_MacroName = 1048576, | ||
CXCompletionContext_NaturalLanguage = 2097152, | ||
CXCompletionContext_IncludedFile = 4194304, | ||
CXCompletionContext_Unknown = 8388607, | ||
CXCompletionContext_AnyType = 1 << 0, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. An example of traversing a binary operator expression There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Very nice! |
||
CXCompletionContext_AnyValue = 1 << 1, | ||
CXCompletionContext_ObjCObjectValue = 1 << 2, | ||
CXCompletionContext_ObjCSelectorValue = 1 << 3, | ||
CXCompletionContext_CXXClassTypeValue = 1 << 4, | ||
CXCompletionContext_DotMemberAccess = 1 << 5, | ||
CXCompletionContext_ArrowMemberAccess = 1 << 6, | ||
CXCompletionContext_ObjCPropertyAccess = 1 << 7, | ||
CXCompletionContext_EnumTag = 1 << 8, | ||
CXCompletionContext_UnionTag = 1 << 9, | ||
CXCompletionContext_StructTag = 1 << 10, | ||
CXCompletionContext_ClassTag = 1 << 11, | ||
CXCompletionContext_Namespace = 1 << 12, | ||
CXCompletionContext_NestedNameSpecifier = 1 << 13, | ||
CXCompletionContext_ObjCInterface = 1 << 14, | ||
CXCompletionContext_ObjCProtocol = 1 << 15, | ||
CXCompletionContext_ObjCCategory = 1 << 16, | ||
CXCompletionContext_ObjCInstanceMessage = 1 << 17, | ||
CXCompletionContext_ObjCClassMessage = 1 << 18, | ||
CXCompletionContext_ObjCSelectorName = 1 << 19, | ||
CXCompletionContext_MacroName = 1 << 20, | ||
CXCompletionContext_NaturalLanguage = 1 << 21, | ||
CXCompletionContext_IncludedFile = 1 << 22, | ||
CXCompletionContext_Unknown = ((1 << 23) - 1), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. even works with parentheses |
||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,9 @@ namespace ClangSharp | |
{ | ||
public enum CXGlobalOptFlags | ||
{ | ||
CXGlobalOpt_None = 0, | ||
CXGlobalOpt_ThreadBackgroundPriorityForIndexing = 1, | ||
CXGlobalOpt_ThreadBackgroundPriorityForEditing = 2, | ||
CXGlobalOpt_ThreadBackgroundPriorityForAll = 3, | ||
CXGlobalOpt_None = 0x0, | ||
CXGlobalOpt_ThreadBackgroundPriorityForIndexing = 0x1, | ||
CXGlobalOpt_ThreadBackgroundPriorityForEditing = 0x2, | ||
CXGlobalOpt_ThreadBackgroundPriorityForAll = CXGlobalOpt_ThreadBackgroundPriorityForIndexing | CXGlobalOpt_ThreadBackgroundPriorityForEditing, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and combining multiple declaration references |
||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ namespace ClangSharp | |
public enum CXLanguageKind | ||
{ | ||
CXLanguage_Invalid = 0, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. An example of the native header explicitly setting the value for one entry, but not the subsequent declarations |
||
CXLanguage_C = 1, | ||
CXLanguage_ObjC = 2, | ||
CXLanguage_CPlusPlus = 3, | ||
CXLanguage_C, | ||
CXLanguage_ObjC, | ||
CXLanguage_CPlusPlus, | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The header file doesn't explicitly set the values for most enums and we don't need to either.