[PATCH] D121733: Clean pathnames in FileManager.
Paul Pluzhnikov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 15 13:15:36 PDT 2022
ppluzhnikov created this revision.
Herald added subscribers: dexonsmith, arphaman.
Herald added a project: All.
ppluzhnikov requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
This reduces visual noise ("./foo.h" -> "foo.h") in error messages.
Fix all tests which fail as a result.
This also fixes a class of failures when __FILE__ is used in modules, and
the module specifies 'textual header "foo.h"' but Clang has "./foo.h"
included elsewhere.
Finally this should fix Windows failure from https://reviews.llvm.org/D121658
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D121733
Files:
clang/bindings/python/tests/cindex/test_translation_unit.py
clang/lib/Basic/FileManager.cpp
clang/test/Frontend/dependency-gen.c
clang/test/Index/skip-parsed-bodies/compile_commands.json
clang/test/Modules/filename.cpp
clang/unittests/Lex/HeaderSearchTest.cpp
clang/unittests/Tooling/Syntax/TokensTest.cpp
clang/unittests/Tooling/TransformerTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121733.415554.patch
Type: text/x-patch
Size: 14109 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220315/58a9f382/attachment-0001.bin>
More information about the cfe-commits
mailing list