[all-commits] [llvm/llvm-project] bab7a3: [clangd] IncludeCleaner: Do not require forward de...
Kirill Bobyrev via All-commits
all-commits at lists.llvm.org
Fri Dec 3 00:37:25 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bab7a30ab692059e5e9dc867a59b9ead47efd35c
https://github.com/llvm/llvm-project/commit/bab7a30ab692059e5e9dc867a59b9ead47efd35c
Author: Kirill Bobyrev <kbobyrev at google.com>
Date: 2021-12-03 (Fri, 03 Dec 2021)
Changed paths:
M clang-tools-extra/clangd/IncludeCleaner.cpp
M clang-tools-extra/clangd/unittests/IncludeCleanerTests.cpp
Log Message:
-----------
[clangd] IncludeCleaner: Do not require forward declarations of RecordDecls when definition is available
This makes IncludeCleaner more useful in the presense of a large number of
forward declarations. If the definition is already in the Translation Unit and
visible to the Main File, forward declarations have no effect.
The original patch D112707 was split in two: D114864 and this one.
Reviewed By: kadircet
Differential Revision: https://reviews.llvm.org/D114949
More information about the All-commits
mailing list