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
[AST] Enhance Struct Decl #117
base: master
Are you sure you want to change the base?
Conversation
44507a6
to
80766b8
Compare
Codecov Report
@@ Coverage Diff @@
## master #117 +/- ##
==========================================
- Coverage 66.47% 64.73% -1.75%
==========================================
Files 98 106 +8
Lines 13679 14095 +416
Branches 2041 2162 +121
==========================================
+ Hits 9093 9124 +31
- Misses 3567 3888 +321
- Partials 1019 1083 +64
Continue to review full report at Codecov.
|
80766b8
to
5332508
Compare
Please rebase to the latest master |
5332508
to
c3c0042
Compare
This pull request introduces 3 alerts when merging c3c0042 into 821b1f6 - view on LGTM.com new alerts:
|
c3c0042
to
6313291
Compare
This pull request introduces 2 alerts when merging 6313291 into 821b1f6 - view on LGTM.com new alerts:
|
7bd569b
to
d1fc314
Compare
d1fc314
to
c9a0208
Compare
f9fd595
to
0d0d5a2
Compare
1b9e54d
to
9dfd770
Compare
9dfd770
to
76674a7
Compare
template <class T, class U> | ||
std::vector<T> &operator+=(std::vector<T> &A, U &B) { | ||
for (auto const &I : B) | ||
A.push_back(T(I)); |
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.
We should have {}
in a loop statement.
std::vector<const DeclarationContainer *> InnerContainers; | ||
std::map<llvm::StringRef, std::vector<const Decl *>> Declarations; | ||
std::map<llvm::StringRef, std::vector<const Decl *>> InvisibleDeclarations; | ||
// std::vector<std::tuple<std::string, langutil::SourceLocation const*>> |
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.
Why do we need to keep the comments part?
lib/Sema/ReferenceResolver.cpp
Outdated
void ReferencesResolver::visit(Identifier &I) { | ||
auto Decls = Resolver.nameFromCurrentScope(I.getName()); | ||
if (Decls.empty()) { | ||
// Bypass too next pass |
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.
I don't understand this comment.
lib/Sema/SemaNameAndTypeResolver.cpp
Outdated
|
||
// We use "invisible" for both inactive variables in blocks and for members | ||
// invisible in contracts. They cannot both be true at the same time. | ||
// assert(!(Inactive && D->getVisibility() != Decl::Visibility::External)); |
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.
Looks like we need this assert. However, this is comment out. Why?
lib/Sema/SemaNameAndTypeResolver.cpp
Outdated
|
||
if (!DeclCont->registerDeclaration(D, Name, &D->getLocation(), Inactive, | ||
false)) { | ||
// Bypass too next pass |
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.
Ditto.
3e9de36
to
da831d9
Compare
da831d9
to
1ef0c06
Compare
1ef0c06
to
d748632
Compare
No description provided.