This is an archive of the discontinued LLVM Phabricator instance.

[Syntax] Build SimpleDeclaration node that groups multiple declarators
ClosedPublic

Authored by ilya-biryukov on Nov 27 2019, 8:25 AM.

Details

Summary

Also remove the temporary TopLevelDeclaration node and add
UnknownDeclaration to represent other unknown nodes.

See the follow-up change for building more top-level declarations.
Adding declarators is also pretty involved and will be done in another
follow-up patch.

Diff Detail

Event Timeline

ilya-biryukov created this revision.Nov 27 2019, 8:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 27 2019, 8:25 AM
  • Remove obsolete FIXME
  • Fix a typo
ilya-biryukov edited the summary of this revision. (Show Details)Nov 27 2019, 8:48 AM

Build result: pass - 60223 tests passed, 0 failed and 732 were skipped.

Log files: console-log.txt, CMakeCache.txt

Build result: pass - 60223 tests passed, 0 failed and 732 were skipped.

Log files: console-log.txt, CMakeCache.txt

gribozavr2 accepted this revision.Nov 29 2019, 2:25 AM
gribozavr2 added inline comments.
clang/unittests/Tooling/Syntax/TreeTest.cpp
453

Could you add two tests that are like these two, but within a function body?

This revision is now accepted and ready to land.Nov 29 2019, 2:25 AM
ilya-biryukov marked an inline comment as done.

Add tests with declarations inside function body

This revision was automatically updated to reflect the committed changes.