[PATCH] D79488: [clangd] Do not offer "Add using" tweak in header files.
Adam Czachorowski via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 6 06:57:46 PDT 2020
adamcz added inline comments.
================
Comment at: clang-tools-extra/clangd/unittests/TweakTests.cpp:2471
+ EXPECT_UNAVAILABLE(Header + "void fun() { one::two::f^f(); }");
+ FileName = "test.hpp";
+ EXPECT_UNAVAILABLE(Header + "void fun() { one::two::f^f(); }");
----------------
sammccall wrote:
> no need for this extra test if using isHeaderFile
I'd argue there is a need for this test - if only to check that we are, in fact, using isHeaderFile() or something equivalent :-)
I can delete it if you want, but I think it's better this way.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79488/new/
https://reviews.llvm.org/D79488
More information about the cfe-commits
mailing list