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

SystemVerilog,refactor: consistent input character handling #2721

Merged
merged 5 commits into from
Nov 23, 2020

Conversation

hirooih
Copy link
Contributor

@hirooih hirooih commented Nov 22, 2020

This fix makes input character handling consistent.
Until now, character input processing has been executed in an ad hoc way.

  • Each function which executes character input has argument "c" and returns "c".
  • It calls skipWhite() before return.

Argument c of process*() points the first charactor of the next token.
"skipWhite (vGetc ())" is done findVerilogTags().
systemverilog-net-var.d/input.sv: comment out nettype test which is not supported yet
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.002%) to 87.085% when pulling 61530bb on hirooih:sv-char-handling into bdeb61a on universal-ctags:master.

@codecov
Copy link

codecov bot commented Nov 22, 2020

Codecov Report

Merging #2721 (61530bb) into master (bdeb61a) will increase coverage by 0.00%.
The diff coverage is 97.59%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2721   +/-   ##
=======================================
  Coverage   86.99%   87.00%           
=======================================
  Files         185      185           
  Lines       39465    39480   +15     
=======================================
+ Hits        34334    34348   +14     
- Misses       5131     5132    +1     
Impacted Files Coverage Δ
parsers/verilog.c 98.62% <97.59%> (-0.13%) ⬇️

Continue to review full report at Codecov.

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

@hirooih hirooih requested a review from masatake November 22, 2020 15:08
@hirooih
Copy link
Contributor Author

hirooih commented Nov 22, 2020

This is the first half of a big refactoring.

@masatake san, this pull-request is 5 steps of refactoring changes but it changed basic way of input character handling.
Please review it.

Coverage is decreased due to sanity check. So it is OK.

@@ -50,7 +50,7 @@ module Net_declarations;

// 6.7.2 Net declarations with user-defined nettypes
nettype T wT;
nettype T wTsum with Tsum; // FIXME:
//nettype T wTsum with Tsum; // FIXME: "nettype" and "with" are unsupported
Copy link
Member

Choose a reason for hiding this comment

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

This is o.k.

FYI
.b test can be a tool for recording this kind of situation.
https://docs.ctags.io/en/latest/units.html#gathering-test-cases-for-known-bugs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks!

@hirooih hirooih merged commit b56a34f into universal-ctags:master Nov 23, 2020
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.

3 participants