Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion parsers/ada.c
Original file line number Diff line number Diff line change
Expand Up @@ -1879,7 +1879,7 @@
* found, if we didn't just fall through */
if((pos + i) < lineLen)
{
token = newAdaToken(&line[pos], i, ADA_KIND_LABEL, false, parent);
newAdaToken(&line[pos], i, ADA_KIND_LABEL, false, parent);

Check warning on line 1882 in parsers/ada.c

View check run for this annotation

Codecov / codecov/patch

parsers/ada.c#L1882

Added line #L1882 was not covered by tests
skipPast(">>");
token = NULL;
}
Expand Down
2 changes: 1 addition & 1 deletion parsers/asm.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ static void findAsmTags (void)
{
while (isspace ((int) *cp))
++cp;
cp = readSymbol (cp, name);
readSymbol (cp, name);
nameFollows = true;
}
makeAsmTag (name, operator, labelCandidate, nameFollows, directive,
Expand Down
1 change: 0 additions & 1 deletion parsers/itcl.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ static int parseClass (tclSubparser *s CTAGS_ATTR_UNUSED, int parentIndex,
}
else if (token->type == '}')
{
protection = KEYWORD_NONE;
break;
}
else
Expand Down
8 changes: 4 additions & 4 deletions parsers/nsis.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ static void findNsisTags (void)
else if (lineStartingWith (cp, "sectiongroup", false))
{
cp += 12;
cp = parseSection (cp, name, K_SECTION_GROUP, CORK_NIL, &sectionGroupIndex);
parseSection (cp, name, K_SECTION_GROUP, CORK_NIL, &sectionGroupIndex);
}
else if (lineStartingWith (cp, "sectiongroupend", true))
{
Expand All @@ -298,19 +298,19 @@ static void findNsisTags (void)
else if (lineStartingWith (cp, "section", false))
{
cp += 7;
cp = parseSection (cp, name, K_SECTION, sectionGroupIndex, NULL);
parseSection (cp, name, K_SECTION, sectionGroupIndex, NULL);
}
/* LangString */
else if (lineStartingWith (cp, "langstring", false))
{
cp += 10;
cp = parseLangString (cp, name);
parseLangString (cp, name);
}
/* LicenseLangString */
else if (lineStartingWith (cp, "licenselangstring", false))
{
cp += 17;
cp = parseLangString (cp, name);
parseLangString (cp, name);
}
/* definitions */
else if (lineStartingWith (cp, "!define", false))
Expand Down
1 change: 0 additions & 1 deletion parsers/plist.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ static void plistFindTagsUnderKey (xmlNode *node,
int c;

queue = stringListNew ();
current = node;
for (current = node; current; current = current->parent)
{
if (isCompoundElement (current)
Expand Down
7 changes: 1 addition & 6 deletions parsers/vim.c
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,6 @@ static void parseVimBallFile (const unsigned char *line)
{
vString *fname = vStringNew ();
const unsigned char *cp;
int file_line_count;
int i;

/*
Expand Down Expand Up @@ -663,17 +662,13 @@ static void parseVimBallFile (const unsigned char *line)
vStringClear (fname);
}

file_line_count = 0;
/* Next line should be the line count of the file */
line = readVimLine ();
if (line == NULL)
{
goto cleanUp;
}
else
{
file_line_count = atoi ((const char *) line);
}
int file_line_count = atoi ((const char *) line);

/* Read all lines of the file */
for (i = 0; i < file_line_count; i++)
Expand Down