Fix false positive in variadic parameter workaround
This commit is contained in:
parent
f66ec833c1
commit
6f70de206b
1 changed files with 2 additions and 5 deletions
|
|
@ -305,13 +305,10 @@ CXSourceRange get_extent(const CXTranslationUnit& tu, const CXFile& file, const
|
||||||
end = get_prev_location(tu, file, next, 1);
|
end = get_prev_location(tu, file, next, 1);
|
||||||
}
|
}
|
||||||
else if ((kind == CXCursor_TemplateTypeParameter || kind == CXCursor_NonTypeTemplateParameter
|
else if ((kind == CXCursor_TemplateTypeParameter || kind == CXCursor_NonTypeTemplateParameter
|
||||||
|| kind == CXCursor_TemplateTemplateParameter)
|
|| kind == CXCursor_TemplateTemplateParameter))
|
||||||
&& consume_if_token_at_is(tu, file, end, "..."))
|
|
||||||
{
|
{
|
||||||
// variadic tokens in unnamed parameter not included
|
// variadic tokens in unnamed parameter not included
|
||||||
DEBUG_ASSERT(token_at_is(tu, file, end, ">") || token_at_is(tu, file, end, ","),
|
consume_if_token_at_is(tu, file, end, "...");
|
||||||
detail::parse_error_handler{}, cur,
|
|
||||||
"unexpected token in variadic parameter workaround");
|
|
||||||
}
|
}
|
||||||
else if (kind == CXCursor_EnumDecl && !token_at_is(tu, file, end, ";"))
|
else if (kind == CXCursor_EnumDecl && !token_at_is(tu, file, end, ";"))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue