summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ScriptInterpreter/Python
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2019-07-24 12:14:56 +0000
committerSam McCall <sam.mccall@gmail.com>2019-07-24 12:14:56 +0000
commitbdc6b6e410114295fc80a6ac7d8784681fed39c7 (patch)
tree56d51961b5aee094145535addfb6cf088b73a622 /lldb/source/Plugins/ScriptInterpreter/Python
parentaaad1a8959d05718fa44c10122ba0ce4d7d3935c (diff)
downloadbcm5719-llvm-bdc6b6e410114295fc80a6ac7d8784681fed39c7.tar.gz
bcm5719-llvm-bdc6b6e410114295fc80a6ac7d8784681fed39c7.zip
[clangd] SelectionTree treats TranslationUnitDecl (mostly) consistently with other containers.
Summary: Previously TranslationUnitDecl would never be selected. This means root() is never null, and returns a reference. commonAncestor() is in principle never null also, but returning TUDecl here requires tweaks to be careful not to traverse it (this was already possible when selecting multiple top-level decls, and there are associated bugs!) Instead, never allow commonAncestor() to return TUDecl, return null instead. Reviewers: hokein Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D65101 llvm-svn: 366893
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud