]> granicus.if.org Git - clang/commit
Optimize region-of-interest based cursor walks through the
authorDouglas Gregor <dgregor@apple.com>
Sat, 20 Mar 2010 00:41:21 +0000 (00:41 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sat, 20 Mar 2010 00:41:21 +0000 (00:41 +0000)
commit788f5a1242c04762f91eaa7565c07b9865846d88
tree90290e9805f628a2a4faad8fb98c5d980fe456a8
parentf746aa6a8f538be914173a4aef2d9a2fd9f99d17
Optimize region-of-interest based cursor walks through the
preprocessed entities by grouping preprocessed entities by file
ID. This drastically improves performance of repeated
clang_getCursor() calls local tests, although it is a bit ugly.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99015 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Frontend/ASTUnit.h
tools/CIndex/CIndex.cpp