- 
                Notifications
    You must be signed in to change notification settings 
- Fork 35
          Update GetDatamembers and GetUnderlyingScope to work with UsingShadowDecl
          #385
        
          New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
  
    Update GetDatamembers and GetUnderlyingScope to work with UsingShadowDecl
  
  #385
              Conversation
There was a problem hiding this 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
17e6475    to
    9a4c472      
    Compare
  
    There was a problem hiding this 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
| clang-tidy review says "All clean, LGTM! 👍" | 
| Codecov ReportAll modified and coverable lines are covered by tests ✅ 
 Additional details and impacted files@@            Coverage Diff             @@
##             main     #385      +/-   ##
==========================================
+ Coverage   70.56%   70.62%   +0.06%     
==========================================
  Files           9        9              
  Lines        3496     3500       +4     
==========================================
+ Hits         2467     2472       +5     
+ Misses       1029     1028       -1     
 
 | 
| Seg faults at cppyy without the patch for cppyy-backend. EDIT | 
Since `Cpp::GetDatamembers` can potentially return `UsingShadowDecl` (compiler-research/CppInterOp#385), we will need to process datamembers through `GetUnderlyingScope`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM mod comments.
9a4c472    to
    5dfcd85      
    Compare
  
    | clang-tidy review says "All clean, LGTM! 👍" | 
…hadowDecl` `GetDatamembers` now also returns `UsingShadowDecl` that point to `FieldDecl`. Update `GetUnderlyingScope` to return the target Decl of using statements. Simplified `CheckVariableAccess` logic.
5dfcd85    to
    e943f38      
    Compare
  
    | clang-tidy review says "All clean, LGTM! 👍" | 
Description
GetDatamembersnow also returnsUsingShadowDeclthat point toFieldDecl.Update
GetUnderlyingScopeto return the target Decl of using statements.Simplified
CheckVariableAccesslogic.Fixes
Towards fixing
test14_protected_accessin cppyy.