[include-cleaner] Add a data-structure to capture IWYU pragmas.
authorHaojian Wu <hokein.wu@gmail.com>
Tue, 18 Oct 2022 20:25:46 +0000 (22:25 +0200)
committerHaojian Wu <hokein.wu@gmail.com>
Mon, 31 Oct 2022 14:21:24 +0000 (15:21 +0100)
commit9ab0827f70a524aa9f94995662d37675cd042f30
tree185348e68dd6a76497b454fe288fe4da83082932
parentad1fad17164fa09586dcce11ef68cbbd2ca0cc50
[include-cleaner] Add a data-structure to capture IWYU pragmas.

PragmaIncludes captures the pragma-based header-mapping information, it is used
in the "Location => Header" step to determine the final spelling header for a
symbol (rather than the header directive).

The structure is by design to be used inside the include-cleaner library
and clangd.

Differential Revision: https://reviews.llvm.org/D136071
clang-tools-extra/include-cleaner/include/clang-include-cleaner/Record.h
clang-tools-extra/include-cleaner/lib/Record.cpp
clang-tools-extra/include-cleaner/unittests/RecordTest.cpp