Skip to content
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

Add Code Completion #246

Merged

Conversation

alexander-penev
Copy link
Collaborator

No description provided.

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

if (r.find(CC.Prefix) == 0)
Results.push_back(r);
#else
static_assert(0 && "CodeCompletion is not implemented in Clang <18!")
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: converting integer literal to bool, use bool literal instead [modernize-use-bool-literals]

  static_assert(0 && "CodeCompletion is not implemented in Clang <18!")
                ^

this fix will not be applied because it overlaps with another fix

if (r.find(CC.Prefix) == 0)
Results.push_back(r);
#else
static_assert(0 && "CodeCompletion is not implemented in Clang <18!")
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: implicit conversion 'int' -> bool [readability-implicit-bool-conversion]

  static_assert(0 && "CodeCompletion is not implemented in Clang <18!")
                ^

this fix will not be applied because it overlaps with another fix

if (r.find(CC.Prefix) == 0)
Results.push_back(r);
#else
static_assert(0 && "CodeCompletion is not implemented in Clang <18!")
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: implicit conversion 'const char *' -> bool [readability-implicit-bool-conversion]

Suggested change
static_assert(0 && "CodeCompletion is not implemented in Clang <18!")
static_assert(0 && true)

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

}

TEST(CodeCompletionTest, Sanity1) {
std::vector<std::string> cc;
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 'cc' is not initialized [cppcoreguidelines-init-variables]

Suggested change
std::vector<std::string> cc;
std::vector<std::string> cc = 0;

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

lib/Interpreter/Compatibility.h Outdated Show resolved Hide resolved
Copy link
Contributor

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

2 similar comments
Copy link
Contributor

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

Copy link
Contributor

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

Copy link
Contributor

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

1 similar comment
Copy link
Contributor

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

Copy link
Contributor

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

Copy link

codecov bot commented Apr 30, 2024

Codecov Report

Attention: Patch coverage is 84.84848% with 5 lines in your changes are missing coverage. Please review.

Project coverage is 79.53%. Comparing base (f93e7b6) to head (2d6abe0).
Report is 9 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #246      +/-   ##
==========================================
- Coverage   87.65%   79.53%   -8.13%     
==========================================
  Files           4        8       +4     
  Lines        1742     3015    +1273     
==========================================
+ Hits         1527     2398     +871     
- Misses        215      617     +402     
Files Coverage Δ
include/clang/Interpreter/CppInterOp.h 100.00% <ø> (ø)
lib/Interpreter/CppInterOp.cpp 88.07% <100.00%> (+0.86%) ⬆️
lib/Interpreter/Compatibility.h 90.97% <83.87%> (-9.03%) ⬇️

... and 5 files with indirect coverage changes

Files Coverage Δ
include/clang/Interpreter/CppInterOp.h 100.00% <ø> (ø)
lib/Interpreter/CppInterOp.cpp 88.07% <100.00%> (+0.86%) ⬆️
lib/Interpreter/Compatibility.h 90.97% <83.87%> (-9.03%) ⬇️

... and 5 files with indirect coverage changes

@compiler-research compiler-research deleted a comment from github-actions bot May 1, 2024
@compiler-research compiler-research deleted a comment from github-actions bot May 1, 2024
lib/Interpreter/Compatibility.h Outdated Show resolved Hide resolved
lib/Interpreter/Compatibility.h Outdated Show resolved Hide resolved
unittests/CppInterOp/InterpreterTest.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

github-actions bot commented May 1, 2024

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

Copy link
Contributor

github-actions bot commented May 1, 2024

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

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

@@ -1,11 +1,15 @@
#include "clang/Interpreter/CppInterOp.h"

#include "clang/Basic/Version.inc"

#include "llvm/ADT/SmallString.h"
#include "llvm/Support/Path.h"

#include <gmock/gmock.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: 'gmock/gmock.h' file not found [clang-diagnostic-error]

#include <gmock/gmock.h>
         ^

@alexander-penev alexander-penev force-pushed the AddCodeCompletion branch 2 times, most recently from c8cb745 to 1a42ae5 Compare May 1, 2024 20:01
unittests/CppInterOp/InterpreterTest.cpp Show resolved Hide resolved
lib/Interpreter/Compatibility.h Show resolved Hide resolved
unittests/CppInterOp/InterpreterTest.cpp Outdated Show resolved Hide resolved
unittests/CppInterOp/InterpreterTest.cpp Outdated Show resolved Hide resolved
Copy link
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 b6e6e3e into compiler-research:main May 3, 2024
30 of 37 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