-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for typedef'd struct const
Summary: Add support for typedef'd struct consts by resolving type aliases recursively. Reviewed By: simonmar Differential Revision: D67096788 fbshipit-source-id: 0216246f3b3f09620480a7a97344e761d924921e
- Loading branch information
1 parent
7103496
commit 6c1048d
Showing
2 changed files
with
26 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
typedef Foo Bar | ||
|
||
struct Foo { | ||
1: i16 a; | ||
} | ||
|
||
const Bar BAR = Bar{a = 1}; |