llvm-project/clang/unittests/Lex
Dmitry Polukhin 178ad93e3f [clang][clangd] Use reverse header map lookup in suggestPathToFileForDiagnostics
Summary:
suggestPathToFileForDiagnostics is actively used in clangd for converting
an absolute path to a header file to a header name as it should be spelled
in the sources. Current approach converts absolute path to relative path.
This diff implements missing logic that makes a reverse lookup from the
relative path to the key in the header map that should be used in the sources.

Prerequisite diff: https://reviews.llvm.org/D103229

Test Plan: check-clang

Reviewers: dexonsmith, bruno, rsmith

Subscribers: cfe-commits

Tasks:

Tags: #clang

Differential Revision: https://reviews.llvm.org/D103142
2021-06-03 01:37:55 -07:00
..
CMakeLists.txt
DependencyDirectivesSourceMinimizerTest.cpp Add support for #elifdef and #elifndef 2021-05-27 08:57:47 -04:00
HeaderMapTest.cpp [clang] NFC: split HeaderMapTest to have re-usable header map implementation for testing 2021-05-31 01:57:36 -07:00
HeaderMapTestUtils.h [clang] NFC: split HeaderMapTest to have re-usable header map implementation for testing 2021-05-31 01:57:36 -07:00
HeaderSearchTest.cpp [clang][clangd] Use reverse header map lookup in suggestPathToFileForDiagnostics 2021-06-03 01:37:55 -07:00
LexerTest.cpp [clang] Make sure argument expansion locations are correct in presence of predefined buffer 2020-04-22 21:01:52 +02:00
PPCallbacksTest.cpp
PPConditionalDirectiveRecordTest.cpp