]> granicus.if.org Git - clang/commit
[Syntax] Added function to get macro expansion tokens to TokenBuffer.
authorJohan Vikstrom <jvikstrom@google.com>
Tue, 20 Aug 2019 13:34:01 +0000 (13:34 +0000)
committerJohan Vikstrom <jvikstrom@google.com>
Tue, 20 Aug 2019 13:34:01 +0000 (13:34 +0000)
commit733f0523575ceb81543e7e692a7e9fc2bd51d46d
treec14a90c3ba4e0778a54deb18b58f926d5d7abfd0
parentef465ebc4b647a229ee9ee282d3d18f1d82e4aea
[Syntax] Added function to get macro expansion tokens to TokenBuffer.

Summary:
Returns the first token in every mapping where the token is an identifier.
This API is required to be able to highlight macro expansions in clangd.

Reviewers: hokein, ilya-biryukov

Subscribers: kadircet, cfe-commits

Tags: #clang

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@369385 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Tooling/Syntax/Tokens.h
lib/Tooling/Syntax/Tokens.cpp
unittests/Tooling/Syntax/TokensTest.cpp