summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/expression_command/macros/TestMacros.py
diff options
context:
space:
mode:
authorEric Liu <ioeric@google.com>2018-02-26 08:32:13 +0000
committerEric Liu <ioeric@google.com>2018-02-26 08:32:13 +0000
commit6c8e858551dc879a35e442cf70388170123c9210 (patch)
tree9cd72117a7101fbcaa8db94adb39e6999b29a029 /lldb/packages/Python/lldbsuite/test/expression_command/macros/TestMacros.py
parentb1e81479e92ae158cb92144c90a371c09cbc7359 (diff)
downloadbcm5719-llvm-6c8e858551dc879a35e442cf70388170123c9210.tar.gz
bcm5719-llvm-6c8e858551dc879a35e442cf70388170123c9210.zip
[clangd] don't insert new includes if either original header or canonical header is already included.
Summary: Changes: o Store both the original header and the canonical header in LSP command. o Also check that both original and canonical headers are not already included by comparing both resolved header path and written literal includes. This addresses the use case where private IWYU pragma is defined in a private header while it would still be preferrable to include the private header, in the internal implementation file. If we have seen that the priviate header is already included, we don't try to insert the canonical include. Reviewers: sammccall Reviewed By: sammccall Subscribers: klimek, ilya-biryukov, jkorous-apple, cfe-commits Differential Revision: https://reviews.llvm.org/D43510 llvm-svn: 326070
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/macros/TestMacros.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud