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

search for interface files when using -y #752

Merged
merged 9 commits into from
May 25, 2023

Conversation

AndrewNolte
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented May 9, 2023

Codecov Report

Merging #752 (4f6de36) into master (c3b0506) will decrease coverage by 0.19%.
The diff coverage is 57.14%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #752      +/-   ##
==========================================
- Coverage   91.42%   91.23%   -0.19%     
==========================================
  Files         185      187       +2     
  Lines       44388    44887     +499     
==========================================
+ Hits        40580    40954     +374     
- Misses       3808     3933     +125     
Impacted Files Coverage Δ
source/parsing/ParserMetadata.cpp 93.33% <0.00%> (-6.67%) ⬇️
source/driver/Driver.cpp 96.38% <100.00%> (-2.37%) ⬇️
source/parsing/Parser.cpp 97.53% <100.00%> (+<0.01%) ⬆️

... and 42 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c3b0506...4f6de36. Read the comment docs.

.ccls Outdated Show resolved Hide resolved
include/slang/parsing/ParserMetadata.h Show resolved Hide resolved
source/driver/Driver.cpp Outdated Show resolved Hide resolved
source/driver/Driver.cpp Outdated Show resolved Hide resolved

for (auto bd : meta.interfacePorts) {
std::string_view name = bd->nameOrKeyword.valueText();
if (knownNames.find(name) == knownNames.end())
Copy link
Owner

Choose a reason for hiding this comment

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

You should check that name is not empty here. Also I think you need to check that the name token is not actually the interface keyword, since that's not actually the name of an interface to load.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I took out the interface keyword check bc of the Parser change. I don't think the name will every be empty right?

Copy link
Owner

Choose a reason for hiding this comment

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

I think you still need those checks because of the reconstruction case in ParserMetadata.cpp, which will apply to all InterfacePortHeaders and not just the specific code path in parsePortHeader. That check can either be here or in ParserMetadata.cpp.

@MikePopoloski MikePopoloski merged commit 751d469 into MikePopoloski:master May 25, 2023
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