libclang: factor out the frequent pattern static_cast<ASTUnit *>(TU->TUData)
authorDmitri Gribenko <gribozavr@gmail.com>
Sat, 26 Jan 2013 18:53:38 +0000 (18:53 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Sat, 26 Jan 2013 18:53:38 +0000 (18:53 +0000)
commitc22ea1ce88572664732044154674f154612f95dd
treea69c16206d55e85bfddb24d1bdf5e7e418d565c5
parenta169118854c3b1e1105efb8eef8d78857868b335
libclang: factor out the frequent pattern static_cast<ASTUnit *>(TU->TUData)
into a getter cxtu::getASTUnit(TU)

llvm-svn: 173585
14 files changed:
clang/tools/libclang/CIndex.cpp
clang/tools/libclang/CIndexCodeCompletion.cpp
clang/tools/libclang/CIndexDiagnostic.cpp
clang/tools/libclang/CIndexHigh.cpp
clang/tools/libclang/CIndexInclusionStack.cpp
clang/tools/libclang/CXComment.cpp
clang/tools/libclang/CXComment.h
clang/tools/libclang/CXCursor.cpp
clang/tools/libclang/CXSourceLocation.cpp
clang/tools/libclang/CXTranslationUnit.h
clang/tools/libclang/CXType.cpp
clang/tools/libclang/CursorVisitor.h
clang/tools/libclang/Indexing.cpp
clang/tools/libclang/IndexingContext.cpp