HomePhabricator

[clangd] Stop recording tokens before running clang-tidy

Authored by ilya-biryukov on Jul 10 2019, 2:28 AM.

Description

[clangd] Stop recording tokens before running clang-tidy

modernize-trailing-return-type runs the preprocessor, breaking the token
collection logic.

This lead to a crash before, see the new test for a repro.

llvm-svn: 365607

Details

Committed
ilya-biryukovJul 10 2019, 2:28 AM
Parents
rG18cb8e401c45: [clangd] Consume error to avoid assertion failures
Branches
Unknown
Tags
Unknown