зеркало из https://github.com/microsoft/clang-1.git
libclang: type safety for CXTranslationUnitImpl::CIdx
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173590 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
337ee24785
Коммит
8c718e7d87
|
@ -2758,7 +2758,7 @@ static void clang_saveTranslationUnit_Impl(void *UserData) {
|
|||
SaveTranslationUnitInfo *STUI =
|
||||
static_cast<SaveTranslationUnitInfo*>(UserData);
|
||||
|
||||
CIndexer *CXXIdx = (CIndexer*)STUI->TU->CIdx;
|
||||
CIndexer *CXXIdx = STUI->TU->CIdx;
|
||||
if (CXXIdx->isOptEnabled(CXGlobalOpt_ThreadBackgroundPriorityForIndexing))
|
||||
setThreadBackgroundPriority();
|
||||
|
||||
|
@ -2857,7 +2857,7 @@ static void clang_reparseTranslationUnit_Impl(void *UserData) {
|
|||
(void) options;
|
||||
RTUI->result = 1;
|
||||
|
||||
CIndexer *CXXIdx = (CIndexer*)TU->CIdx;
|
||||
CIndexer *CXXIdx = TU->CIdx;
|
||||
if (CXXIdx->isOptEnabled(CXGlobalOpt_ThreadBackgroundPriorityForEditing))
|
||||
setThreadBackgroundPriority();
|
||||
|
||||
|
@ -5475,7 +5475,7 @@ static void clang_annotateTokensImpl(void *UserData) {
|
|||
const unsigned NumTokens = ((clang_annotateTokens_Data*)UserData)->NumTokens;
|
||||
CXCursor *Cursors = ((clang_annotateTokens_Data*)UserData)->Cursors;
|
||||
|
||||
CIndexer *CXXIdx = (CIndexer*)TU->CIdx;
|
||||
CIndexer *CXXIdx = TU->CIdx;
|
||||
if (CXXIdx->isOptEnabled(CXGlobalOpt_ThreadBackgroundPriorityForEditing))
|
||||
setThreadBackgroundPriority();
|
||||
|
||||
|
|
|
@ -692,7 +692,7 @@ void clang_codeCompleteAt_Impl(void *UserData) {
|
|||
if (!AST)
|
||||
return;
|
||||
|
||||
CIndexer *CXXIdx = (CIndexer*)TU->CIdx;
|
||||
CIndexer *CXXIdx = TU->CIdx;
|
||||
if (CXXIdx->isOptEnabled(CXGlobalOpt_ThreadBackgroundPriorityForEditing))
|
||||
setThreadBackgroundPriority();
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ namespace clang {
|
|||
} // namespace clang
|
||||
|
||||
struct CXTranslationUnitImpl {
|
||||
void *CIdx;
|
||||
clang::CIndexer *CIdx;
|
||||
clang::ASTUnit *TheASTUnit;
|
||||
void *StringPool;
|
||||
void *Diagnostics;
|
||||
|
|
|
@ -759,7 +759,7 @@ static void clang_indexTranslationUnit_Impl(void *UserData) {
|
|||
if (!client_index_callbacks || index_callbacks_size == 0)
|
||||
return;
|
||||
|
||||
CIndexer *CXXIdx = (CIndexer*)TU->CIdx;
|
||||
CIndexer *CXXIdx = TU->CIdx;
|
||||
if (CXXIdx->isOptEnabled(CXGlobalOpt_ThreadBackgroundPriorityForIndexing))
|
||||
setThreadBackgroundPriority();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче