This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Replace getLangOpts().isHeaderFile usage with isHeaderFile helper.
ClosedPublic

Authored by hokein on Nov 15 2019, 2:37 AM.

Details

Summary

The helper is more correct to detect header file, this would fix our
issues caused by false positive before.

Diff Detail

Event Timeline

hokein created this revision.Nov 15 2019, 2:37 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 15 2019, 2:37 AM

Build result: pass - 60093 tests passed, 0 failed and 729 were skipped.
Log files: console-log.txt, CMakeCache.txt

sammccall accepted this revision.Nov 15 2019, 5:27 AM
sammccall added inline comments.
clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp
181

I'm not sure what the purpose of this comment is (in reference to the code, rather than to this change) - just remove it?

This revision is now accepted and ready to land.Nov 15 2019, 5:27 AM
This revision was automatically updated to reflect the committed changes.
hokein marked an inline comment as done.