Skip to content

Update GetFunctionRequiredArgs for template functions#220

Merged
vgvassilev merged 2 commits intocompiler-research:mainfrom
aaronj0:update-defaultargs-api
Apr 7, 2024
Merged

Update GetFunctionRequiredArgs for template functions#220
vgvassilev merged 2 commits intocompiler-research:mainfrom
aaronj0:update-defaultargs-api

Conversation

@aaronj0
Copy link
Copy Markdown
Collaborator

@aaronj0 aaronj0 commented Apr 5, 2024

No description provided.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.83%. Comparing base (32efeba) to head (36b5655).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #220      +/-   ##
==========================================
+ Coverage   78.80%   78.83%   +0.02%     
==========================================
  Files           8        8              
  Lines        3100     3104       +4     
==========================================
+ Hits         2443     2447       +4     
  Misses        657      657              
Files Coverage Δ
lib/Interpreter/CppInterOp.cpp 86.46% <100.00%> (+0.03%) ⬆️
Files Coverage Δ
lib/Interpreter/CppInterOp.cpp 86.46% <100.00%> (+0.03%) ⬆️

Copy link
Copy Markdown
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

)";

GetAllTopLevelDecls(code, Decls);
GetAllSubDecls(Decls[5], TemplateSubDecls);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: variable 'Decls' is not initialized [cppcoreguidelines-init-variables]

Suggested change
GetAllSubDecls(Decls[5], TemplateSubDecls);
std::vector<Decl*> Decls = 0, TemplateSubDecls;

Copy link
Copy Markdown
Contributor

@vgvassilev vgvassilev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@vgvassilev vgvassilev merged commit 786ebee into compiler-research:main Apr 7, 2024
@aaronj0 aaronj0 deleted the update-defaultargs-api branch April 22, 2025 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants