-
Notifications
You must be signed in to change notification settings - Fork 31
Add Code Completion #246
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add Code Completion #246
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
lib/Interpreter/Compatibility.h
Outdated
if (r.find(CC.Prefix) == 0) | ||
Results.push_back(r); | ||
#else | ||
static_assert(0 && "CodeCompletion is not implemented in Clang <18!") |
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.
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
lib/Interpreter/Compatibility.h
Outdated
if (r.find(CC.Prefix) == 0) | ||
Results.push_back(r); | ||
#else | ||
static_assert(0 && "CodeCompletion is not implemented in Clang <18!") |
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.
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
lib/Interpreter/Compatibility.h
Outdated
if (r.find(CC.Prefix) == 0) | ||
Results.push_back(r); | ||
#else | ||
static_assert(0 && "CodeCompletion is not implemented in Clang <18!") |
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.
warning: implicit conversion 'const char *' -> bool [readability-implicit-bool-conversion]
static_assert(0 && "CodeCompletion is not implemented in Clang <18!") | |
static_assert(0 && true) |
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
} | ||
|
||
TEST(CodeCompletionTest, Sanity1) { | ||
std::vector<std::string> cc; |
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.
warning: variable 'cc' is not initialized [cppcoreguidelines-init-variables]
std::vector<std::string> cc; | |
std::vector<std::string> cc = 0; |
3ae810c
to
79f24cc
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! 👍" |
2 similar comments
clang-tidy review says "All clean, LGTM! 👍" |
clang-tidy review says "All clean, LGTM! 👍" |
clang-tidy review says "All clean, LGTM! 👍" |
1 similar comment
clang-tidy review says "All clean, LGTM! 👍" |
75a7711
to
9eb7cad
Compare
clang-tidy review says "All clean, LGTM! 👍" |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ 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
... and 5 files with indirect coverage changes
|
clang-tidy review says "All clean, LGTM! 👍" |
clang-tidy review says "All clean, LGTM! 👍" |
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
@@ -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> |
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.
warning: 'gmock/gmock.h' file not found [clang-diagnostic-error]
#include <gmock/gmock.h>
^
c8cb745
to
1a42ae5
Compare
85d07da
to
1144e74
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.
LGTM!
c9fbc35
to
2d6abe0
Compare
No description provided.