[all-commits] [llvm/llvm-project] 6d7637: [clangd] Disable delayed template parsing in the m...
Sam McCall via All-commits
all-commits at lists.llvm.org
Sun Apr 26 05:37:38 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 6d7637dc460a3602d725eca8698fa0ecd920031b
https://github.com/llvm/llvm-project/commit/6d7637dc460a3602d725eca8698fa0ecd920031b
Author: Sam McCall <sam.mccall at gmail.com>
Date: 2020-04-26 (Sun, 26 Apr 2020)
Changed paths:
M clang-tools-extra/clangd/ParsedAST.cpp
M clang-tools-extra/clangd/unittests/ParsedASTTests.cpp
Log Message:
-----------
[clangd] Disable delayed template parsing in the main file
Summary:
This is on by default in windows and breaks most features in template bodies.
We'd already disabled it in code completion, now disable it for building ASTs.
Potential regressions:
- we may give spurious errors where files with templates relying on delayed
parsing are directly opened
- we may misparse such template bodies that are instantiated (and therefore
*were* previously parsed)
Still *probably* a win overall. Avoiding the regressions entirely would be
substantial work and we don't have plans for it now.
Fixes https://github.com/clangd/clangd/issues/302 (again)
Reviewers: kadircet
Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D78848
More information about the All-commits
mailing list