Skip to content

Conversation

@kr-2003
Copy link
Contributor

@kr-2003 kr-2003 commented Jun 13, 2025

Description

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

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

@kr-2003 kr-2003 marked this pull request as draft June 13, 2025 12:41
@kr-2003 kr-2003 closed this Jun 13, 2025
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


#include "llvm/Support/Error.h"

#include "clang/Interpreter/RemoteJITUtils.h"
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: 'clang/Interpreter/RemoteJITUtils.h' file not found [clang-diagnostic-error]

#include "clang/Interpreter/RemoteJITUtils.h"
         ^

#include "llvm/Support/Error.h"

#include "clang/Interpreter/RemoteJITUtils.h"
#include "clang/Basic/Version.h"
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: #includes are not sorted properly [llvm-include-order]

Suggested change
#include "clang/Basic/Version.h"
#include "clang/Basic/Version.h"
#include "clang/Interpreter/RemoteJITUtils.h"

#include "llvm/ExecutionEngine/Orc/Debugging/DebuggerSupport.h"

#include "llvm/Support/CommandLine.h"

Copy link
Contributor

Choose a reason for hiding this comment

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

warning: included header CommandLine.h is not used directly [misc-include-cleaner]

Suggested change


#include "llvm/Support/CommandLine.h"

static llvm::ExitOnError ExitOnError;
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: variable 'ExitOnError' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]

static llvm::ExitOnError ExitOnError;
                         ^

std::unique_ptr<llvm::orc::LLJITBuilder> JB;

if(is_out_of_process) {
std::string OOPExecutor = "/Users/abhinavkumar/Desktop/Coding/CERN_HSF_COMPILER_RESEARCH/llvm-project-test/build/bin/llvm-jitlink-executor";
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: no header providing "std::string" is directly included [misc-include-cleaner]

lib/CppInterOp/Compatibility.h:10:

+ #include <string>


TInterp_t CreateInterpreter(const std::vector<const char*>& Args /*={}*/,
const std::vector<const char*>& GpuArgs /*={}*/) {
const std::vector<const char*>& GpuArgs /*={}*/, bool is_out_of_process) {
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: 'MakeResourcesPath' is a static definition in anonymous namespace; static is redundant here [readability-static-definition-in-anonymous-namespace]

Suggested change
const std::vector<const char*>& GpuArgs /*={}*/, bool is_out_of_process) {
std::string MakeResourcesPath() {

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.

1 participant