]> granicus.if.org Git - clang/commit
[Syntax] Do not add a node for 'eof' into the tree
authorIlya Biryukov <ibiryukov@google.com>
Tue, 6 Aug 2019 17:07:58 +0000 (17:07 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Tue, 6 Aug 2019 17:07:58 +0000 (17:07 +0000)
commitbe2253d418fd82e09bbc5da76446f7462c5aaca1
tree859f9351bd90fc0bde54f86d2926a0b198855ac0
parent888cb09800dc23e1090f968b94184260c7f88308
[Syntax] Do not add a node for 'eof' into the tree

Summary:
While useful as a sentinel value when iterating over tokens, having
'eof' in the tree, seems to do more harm than good.

Reviewers: sammccall

Reviewed By: sammccall

Subscribers: javed.absar, kristof.beyls, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D64576

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@368062 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Tooling/Syntax/BuildTree.cpp
unittests/Tooling/Syntax/TreeTest.cpp