forked from OSchip/llvm-project
Fix a typo in the function name that I just introduced (r201155)
llvm-svn: 201156
This commit is contained in:
parent
256454fdaa
commit
852d622e5e
|
@ -2845,7 +2845,7 @@ int clang_saveTranslationUnit(CXTranslationUnit TU, const char *FileName,
|
|||
*Log << TU << ' ' << FileName;
|
||||
}
|
||||
|
||||
if (isNotUseableTU(TU)) {
|
||||
if (isNotUsableTU(TU)) {
|
||||
LOG_BAD_TU(TU);
|
||||
return CXSaveError_InvalidTU;
|
||||
}
|
||||
|
@ -2921,7 +2921,7 @@ static void clang_reparseTranslationUnit_Impl(void *UserData) {
|
|||
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(CXTranslationUnit TU,
|
|||
|
||||
|
||||
CXString clang_getTranslationUnitSpelling(CXTranslationUnit CTUnit) {
|
||||
if (isNotUseableTU(CTUnit)) {
|
||||
if (isNotUsableTU(CTUnit)) {
|
||||
LOG_BAD_TU(CTUnit);
|
||||
return cxstring::createEmpty();
|
||||
}
|
||||
|
@ -3001,7 +3001,7 @@ CXString clang_getTranslationUnitSpelling(CXTranslationUnit CTUnit) {
|
|||
}
|
||||
|
||||
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 TU, const char *file_name) {
|
|||
|
||||
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 GetCursorVisitor(CXCursor cursor,
|
|||
}
|
||||
|
||||
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(CXTranslationUnit TU, CXToken CXTok) {
|
|||
break;
|
||||
}
|
||||
|
||||
if (isNotUseableTU(TU)) {
|
||||
if (isNotUsableTU(TU)) {
|
||||
LOG_BAD_TU(TU);
|
||||
return cxstring::createEmpty();
|
||||
}
|
||||
|
@ -4932,7 +4932,7 @@ CXString clang_getTokenSpelling(CXTranslationUnit TU, CXToken CXTok) {
|
|||
}
|
||||
|
||||
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(CXTranslationUnit TU, CXToken CXTok) {
|
|||
}
|
||||
|
||||
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, CXSourceRange Range,
|
|||
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(CXModule CXMod) {
|
|||
|
||||
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_getNumTopLevelHeaders(CXTranslationUnit TU,
|
|||
|
||||
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(CXTUResourceUsageKind kind) {
|
|||
}
|
||||
|
||||
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_getSkippedRanges(CXTranslationUnit TU, CXFile file) {
|
|||
skipped->count = 0;
|
||||
skipped->ranges = 0;
|
||||
|
||||
if (isNotUseableTU(TU)) {
|
||||
if (isNotUsableTU(TU)) {
|
||||
LOG_BAD_TU(TU);
|
||||
return skipped;
|
||||
}
|
||||
|
|
|
@ -681,7 +681,7 @@ void clang_codeCompleteAt_Impl(void *UserData) {
|
|||
|
||||
bool EnableLogging = getenv("LIBCLANG_CODE_COMPLETION_LOGGING") != 0;
|
||||
|
||||
if (cxtu::isNotUseableTU(TU)) {
|
||||
if (cxtu::isNotUsableTU(TU)) {
|
||||
LOG_BAD_TU(TU);
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -208,7 +208,7 @@ CXDiagnosticSetImpl *cxdiag::lazyCreateDiags(CXTranslationUnit TU,
|
|||
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(CXTranslationUnit Unit) {
|
|||
}
|
||||
|
||||
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(CXTranslationUnit Unit, unsigned Index) {
|
|||
}
|
||||
|
||||
CXDiagnosticSet clang_getDiagnosticSetFromTU(CXTranslationUnit Unit) {
|
||||
if (cxtu::isNotUseableTU(Unit)) {
|
||||
if (cxtu::isNotUsableTU(Unit)) {
|
||||
LOG_BAD_TU(Unit);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -480,7 +480,7 @@ CXResult clang_findReferencesInFile(CXCursor cursor, CXFile file,
|
|||
|
||||
CXResult clang_findIncludesInFile(CXTranslationUnit TU, CXFile file,
|
||||
CXCursorAndRangeVisitor visitor) {
|
||||
if (cxtu::isNotUseableTU(TU)) {
|
||||
if (cxtu::isNotUsableTU(TU)) {
|
||||
LOG_BAD_TU(TU);
|
||||
return CXResult_Invalid;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -122,7 +122,7 @@ CXSourceLocation clang_getLocation(CXTranslationUnit TU,
|
|||
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(CXTranslationUnit TU,
|
|||
CXSourceLocation clang_getLocationForOffset(CXTranslationUnit TU,
|
||||
CXFile file,
|
||||
unsigned offset) {
|
||||
if (cxtu::isNotUseableTU(TU)) {
|
||||
if (cxtu::isNotUsableTU(TU)) {
|
||||
LOG_BAD_TU(TU);
|
||||
return clang_getNullLocation();
|
||||
}
|
||||
|
|
|
@ -46,7 +46,7 @@ static inline ASTUnit *getASTUnit(CXTranslationUnit TU) {
|
|||
return TU->TheASTUnit;
|
||||
}
|
||||
|
||||
static inline bool isNotUseableTU(CXTranslationUnit TU) {
|
||||
static inline bool isNotUsableTU(CXTranslationUnit TU) {
|
||||
return !TU;
|
||||
}
|
||||
|
||||
|
|
|
@ -756,7 +756,7 @@ static void clang_indexTranslationUnit_Impl(void *UserData) {
|
|||
unsigned index_options = ITUI->index_options;
|
||||
ITUI->result = 1; // init as error.
|
||||
|
||||
if (isNotUseableTU(TU)) {
|
||||
if (isNotUsableTU(TU)) {
|
||||
LOG_BAD_TU(TU);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue