]> granicus.if.org Git - clang/commit
Introduce SourceManager::getDecomposedIncludedLoc, that returns the "included/expande...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 13 Apr 2013 01:03:57 +0000 (01:03 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 13 Apr 2013 01:03:57 +0000 (01:03 +0000)
commitecc65238c98ba21d08763da7b7972d617677e908
tree55b6d0ffc73876facdfc8c1ae740df53f5493012
parent3a0f7ac43aa3dcf1e3231549ca9ce8cffd5a2d7c
Introduce SourceManager::getDecomposedIncludedLoc, that returns the "included/expanded in" decomposed location of the given FileID.

The main benefit is to speed-up SourceManager::isBeforeInTranslationUnit which is common to query
the included/expanded location of the same FileID multiple times.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179435 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/SourceManager.h
lib/Basic/SourceManager.cpp