summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/utils/IncludeInserter.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-10-20 21:05:57 +0000
committerZachary Turner <zturner@google.com>2015-10-20 21:05:57 +0000
commit8741e318767ba5567cdcd402f336f182819fdbc1 (patch)
treed68aa83126ba4fe0634d0987ad9895e81dfb9416 /clang-tools-extra/clang-tidy/utils/IncludeInserter.cpp
parent4718944d50d9a3c46059f92178ee1daf4a29a32f (diff)
downloadbcm5719-llvm-8741e318767ba5567cdcd402f336f182819fdbc1.tar.gz
bcm5719-llvm-8741e318767ba5567cdcd402f336f182819fdbc1.zip
Introduce a mechanism for reusing Python modules out of tree.
Right now our Python code does not all share a common root. Tests and scripts both contain python code that cannot take advantage of reusability since they are unrelated siblings of each other. In particular, this presents a problem for wanting to use third party packages from both sides, since it does not make sense to copy the module into both places. This patch solves this by introducing a script lldb_shared.py which is a very lightweight script that just searches up the tree until it finds a root, and then imports a module from there. That module knows how to find all of the shared code that LLDB uses, and adjusts sys.path accordingly to make them all visible. llvm-svn: 250858
Diffstat (limited to 'clang-tools-extra/clang-tidy/utils/IncludeInserter.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud