SF.net SVN: geany:[5566] trunk/tagmanager/c.c

colombanw at users.sourceforge.net colombanw at xxxxx
Sat Mar 5 22:55:34 UTC 2011


Revision: 5566
          http://geany.svn.sourceforge.net/geany/?rev=5566&view=rev
Author:   colombanw
Date:     2011-03-05 22:55:34 +0000 (Sat, 05 Mar 2011)

Log Message:
-----------
Fix some indentation style errors

Modified Paths:
--------------
    trunk/tagmanager/c.c

Modified: trunk/tagmanager/c.c
===================================================================
--- trunk/tagmanager/c.c	2011-03-05 22:55:00 UTC (rev 5565)
+++ trunk/tagmanager/c.c	2011-03-05 22:55:34 UTC (rev 5566)
@@ -661,7 +661,7 @@
 
 static const char *accessString (const accessType laccess)
 {
-	static const char *const names [] ={
+	static const char *const names [] = {
 		"?", "private", "protected", "public", "default"
 	};
 	Assert (sizeof (names) / sizeof (names [0]) == ACCESS_COUNT);
@@ -671,7 +671,7 @@
 
 static const char *implementationString (const impType imp)
 {
-	static const char *const names [] ={
+	static const char *const names [] = {
 		"?", "abstract", "virtual", "pure virtual"
 	};
 	Assert (sizeof (names) / sizeof (names [0]) == IMP_COUNT);
@@ -710,14 +710,14 @@
 
 static const char *declString (const declType declaration)
 {
-		static const char *const names [] = {
-			"?", "base", "class", "enum", "event", "signal", "function",
-			"function template", "ignore", "interface", "module", "namespace",
-			"no mangle", "package", "struct", "union",
-		};
-		Assert (sizeof (names) / sizeof (names [0]) == DECL_COUNT);
-		Assert ((int) declaration < DECL_COUNT);
-		return names[(int) declaration];
+	static const char *const names [] = {
+		"?", "base", "class", "enum", "event", "signal", "function",
+		"function template", "ignore", "interface", "module", "namespace",
+		"no mangle", "package", "struct", "union",
+	};
+	Assert (sizeof (names) / sizeof (names [0]) == DECL_COUNT);
+	Assert ((int) declaration < DECL_COUNT);
+	return names[(int) declaration];
 }
 
 static const char *keywordString (const keywordId keyword)
@@ -954,8 +954,7 @@
 	initToken (st->blockName);
 	vStringClear (st->parentClasses);
 
-	/*  Init member info.
-	 */
+	/* Init member info. */
 	if (! partial)
 		st->member.access = st->member.accessDefault;
 
@@ -982,7 +981,7 @@
 	st->parent = parent;
 	initMemberInfo (st);
 	reinitStatement (st, FALSE);
-	if(parent)
+	if (parent)
 	{
 		const tokenInfo *const src = activeToken (parent);
 		tokenInfo *const dst = activeToken (st);
@@ -1183,11 +1182,11 @@
 static void addOtherFields (tagEntryInfo* const tag, const tagType type,
 							const statementInfo *const st, vString *const scope)
 {
-    /*  For selected tag types, append an extension flag designating the
-     *  parent object in which the tag is defined.
-     */
-    switch (type)
-    {
+	/*  For selected tag types, append an extension flag designating the
+	 *  parent object in which the tag is defined.
+	 */
+	switch (type)
+	{
 		default: break;
 
 		case TAG_CLASS:
@@ -1216,7 +1215,6 @@
 			if ((type == TAG_CLASS  ||  type == TAG_INTERFACE  ||
 				 type == TAG_STRUCT) && vStringLength (st->parentClasses) > 0)
 			{
-
 				tag->extensionFields.inheritance =
 						vStringValue (st->parentClasses);
 			}
@@ -1548,7 +1546,8 @@
 			else if (st->scope == SCOPE_GLOBAL  ||  st->scope == SCOPE_STATIC)
 				makeTag (nameToken, st, TRUE, TAG_MEMBER);
 		}
-		else if (isLanguage (Lang_java) || isLanguage (Lang_csharp) || isLanguage (Lang_vala));
+		else if (isLanguage (Lang_java) || isLanguage (Lang_csharp) || isLanguage (Lang_vala))
+			;
 		else
 		{
 			if (st->scope == SCOPE_EXTERN  ||  ! st->haveQualifyingName)
@@ -2469,10 +2468,8 @@
 		skipToMatch ("()");
 		--depth;
 	}
-		if (st->argEndPosition == 0)
-		{
-			st->argEndPosition = mio_tell(File.mio);
-		}
+	if (st->argEndPosition == 0)
+		st->argEndPosition = mio_tell (File.mio);
 
 	if (! info->isNameCandidate)
 		initToken (token);
@@ -2520,7 +2517,8 @@
 			token->type = TOKEN_NAME;
 			processName (st);
 			st->gotParenName = TRUE;
-			if (isLanguage(Lang_d) && c == '(' && isType (prev, TOKEN_NAME)) {
+			if (isLanguage(Lang_d) && c == '(' && isType (prev, TOKEN_NAME))
+			{
 				st->declaration = DECL_FUNCTION_TEMPLATE;
 				copyToken (st->blockName, prev);
 			}
@@ -2855,12 +2853,12 @@
 
 static void tagCheck (statementInfo *const st)
 {
-    const tokenInfo *const token = activeToken (st);
-    const tokenInfo *const prev  = prevToken (st, 1);
-    const tokenInfo *const prev2 = prevToken (st, 2);
+	const tokenInfo *const token = activeToken (st);
+	const tokenInfo *const prev  = prevToken (st, 1);
+	const tokenInfo *const prev2 = prevToken (st, 2);
 
-    switch (token->type)
-    {
+	switch (token->type)
+	{
 		case TOKEN_NAME:
 		{
 			if (insideEnumBody (st))


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list