Skip to content

Commit f4ff245

Browse files
committed
CPreProcessor: delete redundant function calls
Signed-off-by: Masatake YAMATO <[email protected]>
1 parent 4392e30 commit f4ff245

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

parsers/cpreprocessor.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -826,15 +826,15 @@ static void makeIncludeTag (const char *const name, bool systemHeader)
826826

827827
if (isLanguageRoleEnabled(lang, Cpp.headerKindIndex, role_index))
828828
{
829-
if (doesCPreProRunAsStandaloneParser (CPREPRO_HEADER))
829+
if (standing_alone)
830830
pushLanguage (Cpp.lang);
831831

832832
initRefTagEntry (&e, name, Cpp.headerKindIndex, role_index);
833833
e.isFileScope = false;
834834
e.truncateLineAfterTag = true;
835835
makeTagEntry (&e);
836836

837-
if (doesCPreProRunAsStandaloneParser (CPREPRO_HEADER))
837+
if (standing_alone)
838838
popLanguage ();
839839
}
840840
}

0 commit comments

Comments
 (0)