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

Vera: revise the dataflow of cppGetc -> vStringPut #3886

Merged
merged 5 commits into from
Dec 18, 2023

Conversation

masatake
Copy link
Member

Close #3771.

…ebugging

debugPutc() in the main part uses STRING_SYMBOL and CHAR_SYMBOL.
These two symbols are CPreProcessor specific. So, conceptually
debugPutc should be a part of CPreProcessor.

This change does two things: copying debugPutc() to cppDebugPutc(),
and simplyfing the origial debugPutc(). The new debugPutc() doesn't
use STRING_SYMBOL and CHAR_SYMBOL at all.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
…cessor.h

enum eCharacters including STRING_SYMBOL and CHAR_SYMBOL are
CPreProcessor specific. Therefore they should be parts of CPreProcessor.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Except STRING_SYMBOL and CHAR_SYMBOL, the character names are
used only in CPreProcessor.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Close universal-ctags#3771.
Did the same as universal-ctags#3796.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Copy link

codecov bot commented Dec 18, 2023

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (d4b2038) 85.33% compared to head (8d950a8) 85.32%.
Report is 2 commits behind head on master.

Files Patch % Lines
parsers/cpreprocessor.c 50.00% 4 Missing ⚠️
main/debug.c 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3886      +/-   ##
==========================================
- Coverage   85.33%   85.32%   -0.01%     
==========================================
  Files         231      231              
  Lines       55728    55732       +4     
==========================================
+ Hits        47553    47555       +2     
- Misses       8175     8177       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@masatake masatake merged commit 293f11e into universal-ctags:master Dec 18, 2023
41 of 42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CPreProcessor: Assertion `c >= 0 && c <= 0xff' failed
1 participant