生成されたコードの場合、スコープで変数を格納するためにのみ使用される中括弧でインデントするかどうかを選択できます。現在、このレベルではインデントされていません。インデントしてネストされた構造を暗示するのではないかと思います。一般的な方法は何ですか?
/* loop through the total number of letter a rules */
for (a = 0; a < (number_a_rules - 1); a++)
{
/* loop through secondary position rules */
{
int a2end = arulestableend[2];
for (int a2 = arulestablestart[2]; a2 < a2end; a2++)
{
/* stuff */
}
}
} /* end for a 0 to numberarules -1 */
対
/* loop through the total number of letter a rules */
for (a = 0; a < (number_a_rules - 1); a++)
{
/* loop through secondary position rules */
{
int a2end = arulestableend[2];
for (int a2 = arulestablestart[2]; a2 < a2end; a2++)
{
/* stuff */
}
}
} /* end for a 0 to numberarules -1 */
明確化:デバッガーを使用すると、余分なインデントは、読みにくいコードでの別のレベルのループを意味します...