Skip to content

Commit

Permalink
Merge pull request #16255 from ahoppen/verify-syntax-tree-on-stdlib
Browse files Browse the repository at this point in the history
[libSyntax] Verify the syntax tree generated by compiling the stdlib
  • Loading branch information
ahoppen authored May 4, 2018
2 parents 2335396 + a5d4a98 commit 747e230
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions stdlib/public/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ if(SWIFT_RUNTIME_USE_SANITIZERS)
endif()
endif()

list(APPEND SWIFT_RUNTIME_SWIFT_COMPILE_FLAGS "-Xfrontend" "-verify-syntax-tree")

# Build the runtime with -Wall to catch, e.g., uninitialized variables
# warnings.
list(APPEND SWIFT_RUNTIME_CXX_FLAGS "-Wall")
Expand Down
2 changes: 1 addition & 1 deletion utils/gyb_syntax_support/DeclNodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
'lazy', 'optional', 'override', 'postfix', 'prefix',
'required', 'static', 'unowned', 'weak', 'private',
'fileprivate', 'internal', 'public', 'open',
'mutating', 'nonmutating', 'indirect',
'mutating', 'nonmutating', 'indirect', '__consuming'
]),
Child('DetailLeftParen', kind='LeftParenToken', is_optional=True),
Child('Detail', kind='IdentifierToken', is_optional=True),
Expand Down

0 comments on commit 747e230

Please sign in to comment.