Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Check unit empty - #883

Open
alkino wants to merge 6 commits into
masterfrom
check_unit_empty
Open

Check unit empty#883
alkino wants to merge 6 commits into
masterfrom
check_unit_empty

Conversation

@alkino

Copy link
Copy Markdown
Member

Fix#8 (endly)

@alkino

alkino commented Jun 15, 2022

Copy link
Copy Markdown
MemberAuthor

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?

Comment threadsrc/visitors/semantic_analysis_visitor.cpp Outdated
@bbpbuildbot

Copy link
Copy Markdown
Collaborator

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

Status and direct links:

@pramodk

Copy link
Copy Markdown
Contributor

@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
Copy Markdown
Contributor

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
Copy Markdown
Contributor

@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

codecovBot commented Feb 13, 2023

Copy link
Copy Markdown

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 FilesCoverage Δ
src/visitors/semantic_analysis_visitor.hpp100.00% <ø> (ø)
src/visitors/semantic_analysis_visitor.cpp90.36% <100.00%> (+0.61%)⬆️
test/unit/visitor/semantic_analysis.cpp100.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
Copy Markdown
Collaborator

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

Status and direct links:

@bbpbuildbot

Copy link
Copy Markdown
Collaborator

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

Status and direct links:

@bbpbuildbot

Copy link
Copy Markdown
Collaborator

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

Status and direct links:

Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

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

@alkino@bbpbuildbot@pramodk@iomaganaris