diff options
author | Haojian Wu <hokein.wu@gmail.com> | 2019-11-13 16:30:07 +0100 |
---|---|---|
committer | Haojian Wu <hokein.wu@gmail.com> | 2019-11-15 16:18:27 +0100 |
commit | 509efe5d8edee5637b26fcb645978325de0a7283 (patch) | |
tree | 05eea32a0fcdee7a1f6d3c8c7297e4773d69e2ca /lldb/packages/Python/lldbsuite/test/python_api/thread/main.cpp | |
parent | e3d5ff5a0b102febcddd9d58f24f18b00d4ecb4e (diff) | |
download | bcm5719-llvm-509efe5d8edee5637b26fcb645978325de0a7283.tar.gz bcm5719-llvm-509efe5d8edee5637b26fcb645978325de0a7283.zip |
[clangd] Add isHeaderFile helper.
Summary:
we have a few places using `ASTCtx.getLangOpts().IsHeaderFile` to
determine a header file, but it relies on "-x c-header" compiler flag,
if the compilation command doesn't have this flag, we will get a false
positive. We are encountering this issue in bazel build system.
To solve this problem, we infer the file from file name, actual changes will
come in follow-ups.
Reviewers: sammccall
Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D70235
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/thread/main.cpp')
0 files changed, 0 insertions, 0 deletions