-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2277 from guwirth/unamed-enums
UndocumentedApi: support unnamed-enum
- Loading branch information
Showing
3 changed files
with
75 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,39 @@ | ||
enum /*anonymous enum*/ { | ||
// enum ... | ||
|
||
/** doc */ | ||
enum named_enum_1 { | ||
}; | ||
|
||
enum /*unnamed-enum*/ { | ||
}; | ||
|
||
/** doc */ | ||
enum named_enum_2 : int { | ||
}; | ||
|
||
enum /*unnamed-enum*/ : int { | ||
}; | ||
|
||
// typedef ... | ||
|
||
/** doc */ | ||
typedef enum named_enum_3 { | ||
} type_name_1; | ||
|
||
/** doc */ | ||
typedef enum named_enum_4 : int { | ||
} type_name_2; | ||
|
||
/** doc */ | ||
typedef enum /*unnamed-enum*/ { | ||
} type_name_3; | ||
|
||
typedef enum /*unnamed-enum*/ { | ||
} type_name_4; ///< doc | ||
|
||
/** doc */ | ||
typedef enum /*unnamed-enum*/ : int { | ||
} type_name_5; | ||
|
||
typedef enum /*unnamed-enum*/ : int { | ||
} type_name_6; ///< doc |