Issues with DeclRewriter::buildDeclVar
handling of existing bounds / itypes
#694
Labels
DeclRewriter::buildDeclVar
handling of existing bounds / itypes
#694
Uh oh!
There was an error while loading. Please reload this page.
Some issues with the following code:
checkedc-clang/clang/lib/3C/DeclRewriter.cpp
Lines 833 to 842 in fd4d8af
(Update 2021-09-08: The
getCheckedCAnnotationsEnd
function being factored out in #702 might help.)Duplication of bounds / itypes: 3C rewrites the following:
to:
Unnecessary macro expansion: Currently, 3C fails an assertion if an existing itype is inside a macro. #693 will change 3C to regenerate the itype from the AST. But as seen in a test case there, this may unnecessarily expand a macro:
The expansion could be avoided at least in this case by reading a source range for the parameter that is extended to include the itype instead of adding the itype separately, as the code tries to do for the bounds; here's a proof of concept. But this might cause other problems.
The text was updated successfully, but these errors were encountered: