r201156 - Fix a typo in the function name that I just introduced (r201155)
Dmitri Gribenko
gribozavr at gmail.com
Tue Feb 11 07:02:48 PST 2014
Author: gribozavr
Date: Tue Feb 11 09:02:48 2014
New Revision: 201156
URL: http://llvm.org/viewvc/llvm-project?rev=201156&view=rev
Log:
Fix a typo in the function name that I just introduced (r201155)
Modified:
cfe/trunk/tools/libclang/CIndex.cpp
cfe/trunk/tools/libclang/CIndexCodeCompletion.cpp
cfe/trunk/tools/libclang/CIndexDiagnostic.cpp
cfe/trunk/tools/libclang/CIndexHigh.cpp
cfe/trunk/tools/libclang/CIndexInclusionStack.cpp
cfe/trunk/tools/libclang/CXSourceLocation.cpp
cfe/trunk/tools/libclang/CXTranslationUnit.h
cfe/trunk/tools/libclang/Indexing.cpp
Modified: cfe/trunk/tools/libclang/CIndex.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CIndex.cpp?rev=201156&r1=201155&r2=201156&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CIndex.cpp (original)
+++ cfe/trunk/tools/libclang/CIndex.cpp Tue Feb 11 09:02:48 2014
@@ -2845,7 +2845,7 @@ int clang_saveTranslationUnit(CXTranslat
*Log << TU << ' ' << FileName;
}
- if (isNotUseableTU(TU)) {
+ if (isNotUsableTU(TU)) {
LOG_BAD_TU(TU);
return CXSaveError_InvalidTU;
}
@@ -2921,7 +2921,7 @@ static void clang_reparseTranslationUnit
RTUI->result = 1; // Error.
CXTranslationUnit TU = RTUI->TU;
- if (isNotUseableTU(TU)) {
+ if (isNotUsableTU(TU)) {
LOG_BAD_TU(TU);
return;
}
@@ -2991,7 +2991,7 @@ int clang_reparseTranslationUnit(CXTrans
CXString clang_getTranslationUnitSpelling(CXTranslationUnit CTUnit) {
- if (isNotUseableTU(CTUnit)) {
+ if (isNotUsableTU(CTUnit)) {
LOG_BAD_TU(CTUnit);
return cxstring::createEmpty();
}
@@ -3001,7 +3001,7 @@ CXString clang_getTranslationUnitSpellin
}
CXCursor clang_getTranslationUnitCursor(CXTranslationUnit TU) {
- if (isNotUseableTU(TU)) {
+ if (isNotUsableTU(TU)) {
LOG_BAD_TU(TU);
return clang_getNullCursor();
}
@@ -3034,7 +3034,7 @@ time_t clang_getFileTime(CXFile SFile) {
}
CXFile clang_getFile(CXTranslationUnit TU, const char *file_name) {
- if (isNotUseableTU(TU)) {
+ if (isNotUsableTU(TU)) {
LOG_BAD_TU(TU);
return 0;
}
@@ -3047,7 +3047,7 @@ CXFile clang_getFile(CXTranslationUnit T
unsigned clang_isFileMultipleIncludeGuarded(CXTranslationUnit TU,
CXFile file) {
- if (isNotUseableTU(TU)) {
+ if (isNotUsableTU(TU)) {
LOG_BAD_TU(TU);
return 0;
}
@@ -3945,7 +3945,7 @@ static enum CXChildVisitResult GetCursor
}
CXCursor clang_getCursor(CXTranslationUnit TU, CXSourceLocation Loc) {
- if (isNotUseableTU(TU)) {
+ if (isNotUsableTU(TU)) {
LOG_BAD_TU(TU);
return clang_getNullCursor();
}
@@ -4908,7 +4908,7 @@ CXString clang_getTokenSpelling(CXTransl
break;
}
- if (isNotUseableTU(TU)) {
+ if (isNotUsableTU(TU)) {
LOG_BAD_TU(TU);
return cxstring::createEmpty();
}
@@ -4932,7 +4932,7 @@ CXString clang_getTokenSpelling(CXTransl
}
CXSourceLocation clang_getTokenLocation(CXTranslationUnit TU, CXToken CXTok) {
- if (isNotUseableTU(TU)) {
+ if (isNotUsableTU(TU)) {
LOG_BAD_TU(TU);
return clang_getNullLocation();
}
@@ -4946,7 +4946,7 @@ CXSourceLocation clang_getTokenLocation(
}
CXSourceRange clang_getTokenExtent(CXTranslationUnit TU, CXToken CXTok) {
- if (isNotUseableTU(TU)) {
+ if (isNotUsableTU(TU)) {
LOG_BAD_TU(TU);
return clang_getNullRange();
}
@@ -5042,7 +5042,7 @@ void clang_tokenize(CXTranslationUnit TU
if (NumTokens)
*NumTokens = 0;
- if (isNotUseableTU(TU)) {
+ if (isNotUsableTU(TU)) {
LOG_BAD_TU(TU);
return;
}
@@ -5765,7 +5765,7 @@ extern "C" {
void clang_annotateTokens(CXTranslationUnit TU,
CXToken *Tokens, unsigned NumTokens,
CXCursor *Cursors) {
- if (isNotUseableTU(TU)) {
+ if (isNotUsableTU(TU)) {
LOG_BAD_TU(TU);
return;
}
@@ -6272,7 +6272,7 @@ CXString clang_Module_getFullName(CXModu
unsigned clang_Module_getNumTopLevelHeaders(CXTranslationUnit TU,
CXModule CXMod) {
- if (isNotUseableTU(TU)) {
+ if (isNotUsableTU(TU)) {
LOG_BAD_TU(TU);
return 0;
}
@@ -6286,7 +6286,7 @@ unsigned clang_Module_getNumTopLevelHead
CXFile clang_Module_getTopLevelHeader(CXTranslationUnit TU,
CXModule CXMod, unsigned Index) {
- if (isNotUseableTU(TU)) {
+ if (isNotUsableTU(TU)) {
LOG_BAD_TU(TU);
return 0;
}
@@ -6421,7 +6421,7 @@ const char *clang_getTUResourceUsageName
}
CXTUResourceUsage clang_getCXTUResourceUsage(CXTranslationUnit TU) {
- if (isNotUseableTU(TU)) {
+ if (isNotUsableTU(TU)) {
LOG_BAD_TU(TU);
CXTUResourceUsage usage = { (void*) 0, 0, 0 };
return usage;
@@ -6523,7 +6523,7 @@ CXSourceRangeList *clang_getSkippedRange
skipped->count = 0;
skipped->ranges = 0;
- if (isNotUseableTU(TU)) {
+ if (isNotUsableTU(TU)) {
LOG_BAD_TU(TU);
return skipped;
}
Modified: cfe/trunk/tools/libclang/CIndexCodeCompletion.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CIndexCodeCompletion.cpp?rev=201156&r1=201155&r2=201156&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CIndexCodeCompletion.cpp (original)
+++ cfe/trunk/tools/libclang/CIndexCodeCompletion.cpp Tue Feb 11 09:02:48 2014
@@ -681,7 +681,7 @@ void clang_codeCompleteAt_Impl(void *Use
bool EnableLogging = getenv("LIBCLANG_CODE_COMPLETION_LOGGING") != 0;
- if (cxtu::isNotUseableTU(TU)) {
+ if (cxtu::isNotUsableTU(TU)) {
LOG_BAD_TU(TU);
return;
}
Modified: cfe/trunk/tools/libclang/CIndexDiagnostic.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CIndexDiagnostic.cpp?rev=201156&r1=201155&r2=201156&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CIndexDiagnostic.cpp (original)
+++ cfe/trunk/tools/libclang/CIndexDiagnostic.cpp Tue Feb 11 09:02:48 2014
@@ -208,7 +208,7 @@ CXDiagnosticSetImpl *cxdiag::lazyCreateD
extern "C" {
unsigned clang_getNumDiagnostics(CXTranslationUnit Unit) {
- if (cxtu::isNotUseableTU(Unit)) {
+ if (cxtu::isNotUsableTU(Unit)) {
LOG_BAD_TU(Unit);
return 0;
}
@@ -218,7 +218,7 @@ unsigned clang_getNumDiagnostics(CXTrans
}
CXDiagnostic clang_getDiagnostic(CXTranslationUnit Unit, unsigned Index) {
- if (cxtu::isNotUseableTU(Unit)) {
+ if (cxtu::isNotUsableTU(Unit)) {
LOG_BAD_TU(Unit);
return 0;
}
@@ -235,7 +235,7 @@ CXDiagnostic clang_getDiagnostic(CXTrans
}
CXDiagnosticSet clang_getDiagnosticSetFromTU(CXTranslationUnit Unit) {
- if (cxtu::isNotUseableTU(Unit)) {
+ if (cxtu::isNotUsableTU(Unit)) {
LOG_BAD_TU(Unit);
return 0;
}
Modified: cfe/trunk/tools/libclang/CIndexHigh.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CIndexHigh.cpp?rev=201156&r1=201155&r2=201156&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CIndexHigh.cpp (original)
+++ cfe/trunk/tools/libclang/CIndexHigh.cpp Tue Feb 11 09:02:48 2014
@@ -480,7 +480,7 @@ CXResult clang_findReferencesInFile(CXCu
CXResult clang_findIncludesInFile(CXTranslationUnit TU, CXFile file,
CXCursorAndRangeVisitor visitor) {
- if (cxtu::isNotUseableTU(TU)) {
+ if (cxtu::isNotUsableTU(TU)) {
LOG_BAD_TU(TU);
return CXResult_Invalid;
}
Modified: cfe/trunk/tools/libclang/CIndexInclusionStack.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CIndexInclusionStack.cpp?rev=201156&r1=201155&r2=201156&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CIndexInclusionStack.cpp (original)
+++ cfe/trunk/tools/libclang/CIndexInclusionStack.cpp Tue Feb 11 09:02:48 2014
@@ -24,7 +24,7 @@ using namespace clang;
extern "C" {
void clang_getInclusions(CXTranslationUnit TU, CXInclusionVisitor CB,
CXClientData clientData) {
- if (cxtu::isNotUseableTU(TU)) {
+ if (cxtu::isNotUsableTU(TU)) {
LOG_BAD_TU(TU);
return;
}
Modified: cfe/trunk/tools/libclang/CXSourceLocation.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CXSourceLocation.cpp?rev=201156&r1=201155&r2=201156&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CXSourceLocation.cpp (original)
+++ cfe/trunk/tools/libclang/CXSourceLocation.cpp Tue Feb 11 09:02:48 2014
@@ -122,7 +122,7 @@ CXSourceLocation clang_getLocation(CXTra
CXFile file,
unsigned line,
unsigned column) {
- if (cxtu::isNotUseableTU(TU)) {
+ if (cxtu::isNotUsableTU(TU)) {
LOG_BAD_TU(TU);
return clang_getNullLocation();
}
@@ -155,7 +155,7 @@ CXSourceLocation clang_getLocation(CXTra
CXSourceLocation clang_getLocationForOffset(CXTranslationUnit TU,
CXFile file,
unsigned offset) {
- if (cxtu::isNotUseableTU(TU)) {
+ if (cxtu::isNotUsableTU(TU)) {
LOG_BAD_TU(TU);
return clang_getNullLocation();
}
Modified: cfe/trunk/tools/libclang/CXTranslationUnit.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CXTranslationUnit.h?rev=201156&r1=201155&r2=201156&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CXTranslationUnit.h (original)
+++ cfe/trunk/tools/libclang/CXTranslationUnit.h Tue Feb 11 09:02:48 2014
@@ -46,7 +46,7 @@ static inline ASTUnit *getASTUnit(CXTran
return TU->TheASTUnit;
}
-static inline bool isNotUseableTU(CXTranslationUnit TU) {
+static inline bool isNotUsableTU(CXTranslationUnit TU) {
return !TU;
}
Modified: cfe/trunk/tools/libclang/Indexing.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/Indexing.cpp?rev=201156&r1=201155&r2=201156&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/Indexing.cpp (original)
+++ cfe/trunk/tools/libclang/Indexing.cpp Tue Feb 11 09:02:48 2014
@@ -756,7 +756,7 @@ static void clang_indexTranslationUnit_I
unsigned index_options = ITUI->index_options;
ITUI->result = 1; // init as error.
- if (isNotUseableTU(TU)) {
+ if (isNotUsableTU(TU)) {
LOG_BAD_TU(TU);
return;
}
More information about the cfe-commits
mailing list