forked from qt-creator/qt-creator
Profiling has shown that this function is a hotspot. Luckily, it can be easily sped up by taking advantage of the fact that the AST nodes are (mostly) sorted by range, allowing us to employ a binary search when looking for a given range. Change-Id: I950c150543ff68b975d36c6fb652d366b93ea3b2 Reviewed-by: David Schulz <david.schulz@qt.io>