Skip to content

Remove unneeded MakeResourceDir #700

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

Merged

Conversation

mcbarton
Copy link
Collaborator

Description

Please include a summary of changes, motivation and context for this PR.

MakeResourceDir is in the compatibility header file despite the fact it is not dependent on what llvm version you are using, or whether you are using cling or clang-repl. Therefore this PR removes is, and just replaces the function in the code.

Fixes # (issue)

Type of change

Please tick all options which are relevant.

  • Bug fix
  • New feature
  • Requires documentation updates

Testing

Please describe the test(s) that you added and ran to verify your changes.

Checklist

  • I have read the contribution guide recently

@mcbarton mcbarton requested a review from vgvassilev August 11, 2025 15:01
Copy link

codecov bot commented Aug 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.73%. Comparing base (e5a3480) to head (7b5797f).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #700      +/-   ##
==========================================
- Coverage   79.74%   79.73%   -0.02%     
==========================================
  Files           9        9              
  Lines        3955     3953       -2     
==========================================
- Hits         3154     3152       -2     
  Misses        801      801              
Files with missing lines Coverage Δ
lib/CppInterOp/Compatibility.h 92.03% <ø> (-0.34%) ⬇️
lib/CppInterOp/CppInterOp.cpp 87.90% <100.00%> (+0.01%) ⬆️
Files with missing lines Coverage Δ
lib/CppInterOp/Compatibility.h 92.03% <ø> (-0.34%) ⬇️
lib/CppInterOp/CppInterOp.cpp 87.90% <100.00%> (+0.01%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
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

@mcbarton mcbarton force-pushed the Remove-unneeded-MakeResourceDir branch from e6523cb to 4d5809c Compare August 11, 2025 15:23
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@mcbarton
Copy link
Collaborator Author

This PR is ready for review.

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@@ -393,13 +393,6 @@ class SynthesizingCodeRAII {

namespace compat {

inline std::string MakeResourceDir(llvm::StringRef Dir) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

An alternative to removing MakeResourceDir like I've done here would be to move it to a different header file. It doesn't really belong in compatibility.h anymore since its not dependent on llvm version or operating system. @vgvassilev Is it ok just removing it, or would you prefer it be moved somewhere else? If its the latter, which header file do you suggest it gets moved to.

Copy link
Contributor

Choose a reason for hiding this comment

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

No, this lgtm!

@mcbarton mcbarton merged commit d6ffc84 into compiler-research:main Aug 12, 2025
42 checks passed
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