aboutsummaryrefslogtreecommitdiff
path: root/tools/libclang/CIndex.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-03-28 02:49:54 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-03-28 02:49:54 +0000
commit81b5ac39a97cde1a54b8d0eb7105290c40eb84d7 (patch)
tree12d0a4daa6f1d0895c3e3f3b1e66aff3e25cb2d7 /tools/libclang/CIndex.cpp
parent8e7c48a54b4325925f5edda1738a3537ab2c3c5e (diff)
[libclang] Rename setBackGroundPriority -> setThreadBackgroundPriority.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153566 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/libclang/CIndex.cpp')
-rw-r--r--tools/libclang/CIndex.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/libclang/CIndex.cpp b/tools/libclang/CIndex.cpp
index 872c915180..e8acfd9df2 100644
--- a/tools/libclang/CIndex.cpp
+++ b/tools/libclang/CIndex.cpp
@@ -2511,7 +2511,7 @@ static void clang_parseTranslationUnit_Impl(void *UserData) {
CIndexer *CXXIdx = static_cast<CIndexer *>(CIdx);
if (CXXIdx->isOptEnabled(CXGlobalOpt_ThreadBackgroundPriorityForIndexing))
- setBackGroundPriority();
+ setThreadBackgroundPriority();
bool PrecompilePreamble = options & CXTranslationUnit_PrecompiledPreamble;
// FIXME: Add a flag for modules.
@@ -2688,7 +2688,7 @@ static void clang_saveTranslationUnit_Impl(void *UserData) {
CIndexer *CXXIdx = (CIndexer*)STUI->TU->CIdx;
if (CXXIdx->isOptEnabled(CXGlobalOpt_ThreadBackgroundPriorityForIndexing))
- setBackGroundPriority();
+ setThreadBackgroundPriority();
STUI->result = static_cast<ASTUnit *>(STUI->TU->TUData)->Save(STUI->FileName);
}
@@ -2779,7 +2779,7 @@ static void clang_reparseTranslationUnit_Impl(void *UserData) {
CIndexer *CXXIdx = (CIndexer*)TU->CIdx;
if (CXXIdx->isOptEnabled(CXGlobalOpt_ThreadBackgroundPriorityForEditing))
- setBackGroundPriority();
+ setThreadBackgroundPriority();
ASTUnit *CXXUnit = static_cast<ASTUnit *>(TU->TUData);
ASTUnit::ConcurrencyCheck Check(*CXXUnit);
@@ -5166,7 +5166,7 @@ static void clang_annotateTokensImpl(void *UserData) {
CIndexer *CXXIdx = (CIndexer*)TU->CIdx;
if (CXXIdx->isOptEnabled(CXGlobalOpt_ThreadBackgroundPriorityForEditing))
- setBackGroundPriority();
+ setThreadBackgroundPriority();
// Determine the region of interest, which contains all of the tokens.
SourceRange RegionOfInterest;
@@ -5741,7 +5741,7 @@ void SetSafetyThreadStackSize(unsigned Value) {
}
-void clang::setBackGroundPriority() {
+void clang::setThreadBackgroundPriority() {
// FIXME: Move to llvm/Support and make it cross-platform.
#ifdef __APPLE__
setpriority(PRIO_DARWIN_THREAD, 0, PRIO_DARWIN_BG);