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

Check unit empty #883

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Check unit empty #883

wants to merge 6 commits into from

Conversation

alkino
Copy link
Member

@alkino alkino commented Jun 15, 2022

Fix #8 (endly)

@alkino alkino force-pushed the check_unit_empty branch from 3a52160 to 6d98823 Compare June 15, 2022 17:13
@alkino
Copy link
Member Author

alkino commented Jun 15, 2022

I got only one problem (_) is not considered as an empty name, because the name is _.

Here _ means space.

I guess we should modify the parser to strip spaces around name, right?

@bbpbuildbot
Copy link
Collaborator

Logfiles from GitLab pipeline #60936 (:white_check_mark:) have been uploaded here!

Status and direct links:

@pramodk
Copy link
Contributor

pramodk commented Jun 16, 2022

@alkino : If this is a good change, I wonder if similar change should be done on neuron side. This way, we won't have situation where neuron will accept the mod file but coreneuron will fail to compile 🤔

@pramodk
Copy link
Contributor

pramodk commented Jun 17, 2022

I guess we should modify the parser to strip spaces around name, right?

I believe so! I don't this is where "spaces" as a name make sense.

@pramodk
Copy link
Contributor

pramodk commented Jun 23, 2022

@alkino : If this is a good change, I wonder if similar change should be done on neuron side

What do you think @alkino ? Can you check if NEURON accepts mod file containing empty unit name?

@codecov
Copy link

codecov bot commented Feb 13, 2023

Codecov Report

Merging #883 (d5853f6) into master (0481f30) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #883      +/-   ##
==========================================
+ Coverage   68.74%   68.76%   +0.02%     
==========================================
  Files         189      189              
  Lines       25789    25808      +19     
==========================================
+ Hits        17729    17748      +19     
  Misses       8060     8060              
Impacted Files Coverage Δ
src/visitors/semantic_analysis_visitor.hpp 100.00% <ø> (ø)
src/visitors/semantic_analysis_visitor.cpp 90.36% <100.00%> (+0.61%) ⬆️
test/unit/visitor/semantic_analysis.cpp 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@bbpbuildbot
Copy link
Collaborator

Logfiles from GitLab pipeline #101693 (:white_check_mark:) have been uploaded here!

Status and direct links:

@bbpbuildbot
Copy link
Collaborator

Logfiles from GitLab pipeline #101806 (:white_check_mark:) have been uploaded here!

Status and direct links:

@bbpbuildbot
Copy link
Collaborator

Logfiles from GitLab pipeline #102310 (:white_check_mark:) have been uploaded here!

Status and direct links:

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.

Issue warning for empty units during semantic analysis
4 participants