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

Ada : fixed cppcheck errors + added ada-label test #2946

Merged
merged 2 commits into from
Apr 7, 2021

Conversation

koenmeersman
Copy link
Contributor

cppcheck

errors fixed:

parsers/ada.c:497:41: style: Condition 'token->prev==NULL' is always true [knownConditionTrueFalse]
parsers/ada.c:493:20: note: Assuming that condition 'token->prev!=NULL' is not redundant
parsers/ada.c:497:41: note: Condition 'token->prev==NULL' is always true
parsers/ada.c:507:41: style: Condition 'token->next==NULL' is always true [knownConditionTrueFalse]
parsers/ada.c:503:20: note: Assuming that condition 'token->next!=NULL' is not redundant
parsers/ada.c:507:41: note: Condition 'token->next==NULL' is always true
parsers/ada.c:2025:19: style: Variable 'token' is reassigned a value before the old one has been used. [redundantAssignment]
parsers/ada.c:2023:19: note: token is assigned
parsers/ada.c:2025:19: note: token is overwritten

False error:

Following error is false error (The function 'skipPastKeywordOrWord' is used)

parsers/ada.c:944:0: style: The function 'skipPastKeywordOrWord' is never used. [unusedFunction]

Added label test

Improving coverage from:

  File 'parsers/ada.c'
  Lines executed:73.10% of 788
  Creating 'ada.c.gcov'

to:

  File 'parsers/ada.c'
  Lines executed:80.46% of 788
  Creating 'ada.c.gcov'

   parsers/ada.c:497:41: style: Condition 'token->prev==NULL' is always true [knownConditionTrueFalse]
   parsers/ada.c:493:20: note: Assuming that condition 'token->prev!=NULL' is not redundant
   parsers/ada.c:497:41: note: Condition 'token->prev==NULL' is always true
   parsers/ada.c:507:41: style: Condition 'token->next==NULL' is always true [knownConditionTrueFalse]
   parsers/ada.c:503:20: note: Assuming that condition 'token->next!=NULL' is not redundant
   parsers/ada.c:507:41: note: Condition 'token->next==NULL' is always true
   parsers/ada.c:2025:19: style: Variable 'token' is reassigned a value before the old one has been used. [redundantAssignment]
  parsers/ada.c:2023:19: note: token is assigned
  parsers/ada.c:2025:19: note: token is overwritten

Following cppcheck error is false error (The function 'skipPastKeywordOrWord' is used)
  parsers/ada.c:944:0: style: The function 'skipPastKeywordOrWord' is never used. [unusedFunction]
Improving coverage from:

  File 'parsers/ada.c'
  Lines executed:73.10% of 788
  Creating 'ada.c.gcov'

to:

  File 'parsers/ada.c'
  Lines executed:80.46% of 788
  Creating 'ada.c.gcov'
@codecov
Copy link

codecov bot commented Apr 7, 2021

Codecov Report

Merging #2946 (11ccf0b) into master (8933d0f) will increase coverage by 0.07%.
The diff coverage is 100.00%.

❗ Current head 11ccf0b differs from pull request most recent head 588aa20. Consider uploading reports for the commit 588aa20 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2946      +/-   ##
==========================================
+ Coverage   87.16%   87.24%   +0.07%     
==========================================
  Files         194      194              
  Lines       44421    44422       +1     
==========================================
+ Hits        38719    38755      +36     
+ Misses       5702     5667      -35     
Impacted Files Coverage Δ
parsers/ada.c 80.43% <100.00%> (+4.53%) ⬆️

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 8933d0f...588aa20. Read the comment docs.

@koenmeersman koenmeersman changed the title Ada : fixed addcheck errors + ada-label test Ada : fixed cppcheck errors + ada-label test Apr 7, 2021
@koenmeersman koenmeersman changed the title Ada : fixed cppcheck errors + ada-label test Ada : fixed cppcheck errors + added ada-label test Apr 7, 2021
@masatake masatake merged commit 6f06e29 into universal-ctags:master Apr 7, 2021
@masatake
Copy link
Member

masatake commented Apr 7, 2021

Thank you.
Could you consider being a maintainer of Ada parser?

@masatake
Copy link
Member

masatake commented Apr 7, 2021

I cannot find time for working on Ada parser now.
However, it seems that you can fix the issues you reported.
So I invited you to this project. Even if you reject the invitation, I will fix the issues you reported with your help. However, you have to wait till I find the time.

@koenmeersman
Copy link
Contributor Author

koenmeersman commented Apr 9, 2021 via email

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