[llvm-branch-commits] [cfe-branch] r118557 - /cfe/branches/Apple/whitney/tools/libclang/CIndex.cpp
Daniel Dunbar
daniel at zuster.org
Tue Nov 9 09:31:43 PST 2010
Author: ddunbar
Date: Tue Nov 9 11:31:43 2010
New Revision: 118557
URL: http://llvm.org/viewvc/llvm-project?rev=118557&view=rev
Log:
Merge r118273:
--
Author: Daniel Dunbar <daniel at zuster.org>
Date: Fri Nov 5 07:19:21 2010 +0000
Fix 80-col violas.
Modified:
cfe/branches/Apple/whitney/tools/libclang/CIndex.cpp
Modified: cfe/branches/Apple/whitney/tools/libclang/CIndex.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/whitney/tools/libclang/CIndex.cpp?rev=118557&r1=118556&r2=118557&view=diff
==============================================================================
--- cfe/branches/Apple/whitney/tools/libclang/CIndex.cpp (original)
+++ cfe/branches/Apple/whitney/tools/libclang/CIndex.cpp Tue Nov 9 11:31:43 2010
@@ -2131,12 +2131,12 @@
const char *source_filename,
const char * const *command_line_args,
int num_command_line_args,
- struct CXUnsavedFile *unsaved_files,
+ struct CXUnsavedFile *unsaved_files,
unsigned num_unsaved_files,
unsigned options) {
ParseTranslationUnitInfo PTUI = { CIdx, source_filename, command_line_args,
- num_command_line_args, unsaved_files, num_unsaved_files,
- options, 0 };
+ num_command_line_args, unsaved_files,
+ num_unsaved_files, options, 0 };
llvm::CrashRecoveryContext CRC;
if (!CRC.RunSafely(clang_parseTranslationUnit_Impl, &PTUI)) {
@@ -2490,7 +2490,8 @@
void *isa;
int flags;
int reserved;
- enum CXChildVisitResult(*invoke)(struct _CXChildVisitResult*, CXCursor, CXCursor);
+ enum CXChildVisitResult(*invoke)(struct _CXChildVisitResult*, CXCursor,
+ CXCursor);
} *CXCursorVisitorBlock;
static enum CXChildVisitResult visitWithBlock(CXCursor cursor, CXCursor parent,
@@ -2501,7 +2502,8 @@
#endif
-unsigned clang_visitChildrenWithBlock(CXCursor parent, CXCursorVisitorBlock block) {
+unsigned clang_visitChildrenWithBlock(CXCursor parent,
+ CXCursorVisitorBlock block) {
return clang_visitChildren(parent, visitWithBlock, block);
}
@@ -3457,7 +3459,7 @@
D->getLocation(), CXXUnit);
case Decl::ObjCClass:
- return MakeCursorOverloadedDeclRef(cast<ObjCClassDecl>(D), D->getLocation(),
+ return MakeCursorOverloadedDeclRef(cast<ObjCClassDecl>(D), D->getLocation(),
CXXUnit);
case Decl::Friend:
@@ -4056,9 +4058,9 @@
reprocess:
if (Tok.is(tok::hash) && Tok.isAtStartOfLine()) {
// We have found a preprocessing directive. Gobble it up so that we
- // don't see it while preprocessing these tokens later, but keep track of
- // all of the token locations inside this preprocessing directive so that
- // we can annotate them appropriately.
+ // don't see it while preprocessing these tokens later, but keep track
+ // of all of the token locations inside this preprocessing directive so
+ // that we can annotate them appropriately.
//
// FIXME: Some simple tests here could identify macro definitions and
// #undefs, to provide specific cursor kinds for those.
More information about the llvm-branch-commits
mailing list