[Lex] Fix `fixits` for typo-corrections of preprocessing directives within skipped...
authorArgyrios Kyrtzidis <kyrtzidis@apple.com>
Tue, 7 Jun 2022 20:35:17 +0000 (13:35 -0700)
committerArgyrios Kyrtzidis <kyrtzidis@apple.com>
Fri, 10 Jun 2022 20:32:19 +0000 (13:32 -0700)
commitfbaa8b9ae5f3c6637be7d4dae6adaab4be811625
tree9348878c1f2cf5391659fe05b1d80d8323b0f386
parent536095a27c17e2f30765111f57d36c0ee9e211c7
[Lex] Fix `fixits` for typo-corrections of preprocessing directives within skipped blocks

The `EndLoc` parameter was always unset so no fixit was emitted. But it is also unnecessary for determining the range so we can remove it.

Differential Revision: https://reviews.llvm.org/D127251
clang/include/clang/Lex/Preprocessor.h
clang/lib/Lex/PPDirectives.cpp
clang/test/Preprocessor/suggest-typoed-directive.c