summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDeclCXX.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-02-03 17:17:35 +0000
committerDouglas Gregor <dgregor@apple.com>2011-02-03 17:17:35 +0000
commite664276bcff24c75a4eb72ac7e5cc9758be96476 (patch)
treea866bccaa87ae593f8bc1d24aca82765ce1d9fad /clang/lib/Sema/SemaDeclCXX.cpp
parentf12e120743102dbc8b87ff7e1b1b221ad96cea31 (diff)
downloadbcm5719-llvm-e664276bcff24c75a4eb72ac7e5cc9758be96476.tar.gz
bcm5719-llvm-e664276bcff24c75a4eb72ac7e5cc9758be96476.zip
Teach SourceManager::getLocation() how to cope with a source file
whose inode has changed since the file was first created and that is being seen through a different path name (e.g., due to symlinks or relative path elements), such that its FileEntry pointer doesn't match a known FileEntry pointer. Since this requires a system call (to stat()), we only perform this deeper checking if we can't find the file by comparing FileEntry pointers. Also, add a micro-optimization where we don't bother to compute line numbers when given the location (1, 1). This improves the efficiency of clang_getLocationForOffset(). llvm-svn: 124800
Diffstat (limited to 'clang/lib/Sema/SemaDeclCXX.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud