[cfe-commits] r114075 - /cfe/trunk/tools/libclang/CIndex.cpp
Douglas Gregor
dgregor at apple.com
Thu Sep 16 06:54:00 PDT 2010
Author: dgregor
Date: Thu Sep 16 08:54:00 2010
New Revision: 114075
URL: http://llvm.org/viewvc/llvm-project?rev=114075&view=rev
Log:
Fix a silly typo and its pasteo. Thanks to Francois Pichet for noticing my mistake
Modified:
cfe/trunk/tools/libclang/CIndex.cpp
Modified: cfe/trunk/tools/libclang/CIndex.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CIndex.cpp?rev=114075&r1=114074&r2=114075&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CIndex.cpp (original)
+++ cfe/trunk/tools/libclang/CIndex.cpp Thu Sep 16 08:54:00 2010
@@ -3365,7 +3365,7 @@
}
unsigned clang_getNumOverloadedDecls(CXCursor C) {
- if (!C.kind == CXCursor_OverloadedDeclRef)
+ if (C.kind != CXCursor_OverloadedDeclRef)
return 0;
OverloadedDeclRefStorage Storage = getCursorOverloadedDeclRef(C).first;
@@ -3388,7 +3388,7 @@
}
CXCursor clang_getOverloadedDecl(CXCursor cursor, unsigned index) {
- if (!cursor.kind == CXCursor_OverloadedDeclRef)
+ if (cursor.kind != CXCursor_OverloadedDeclRef)
return clang_getNullCursor();
if (index >= clang_getNumOverloadedDecls(cursor))
More information about the cfe-commits
mailing list