Skip to content

Add extra information to directives#6527

Merged
olabetskyi merged 12 commits intocppcheck-opensource:mainfrom
olabetskyi:directive
Jun 19, 2024
Merged

Add extra information to directives#6527
olabetskyi merged 12 commits intocppcheck-opensource:mainfrom
olabetskyi:directive

Conversation

@olabetskyi
Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread lib/preprocessor.h
Copy link
Copy Markdown
Collaborator

@danmar danmar left a comment

Choose a reason for hiding this comment

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

some test will be needed.

Comment thread lib/preprocessor.cpp Outdated
Comment thread lib/tokenize.cpp Outdated
Comment thread lib/tokenize.cpp Outdated
@danmar
Copy link
Copy Markdown
Collaborator

danmar commented Jun 14, 2024

I think that the lifetime of simplecpp tokens is limited. If you store simplecpp token pointers this class is not safe for some possible use cases.

Copy link
Copy Markdown
Collaborator

@danmar danmar left a comment

Choose a reason for hiding this comment

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

lgtm

@danmar
Copy link
Copy Markdown
Collaborator

danmar commented Jun 17, 2024

I don't remember how the location is set.. what is the output for this macro?

#define X 1 \
    2 \
    3

@olabetskyi
Copy link
Copy Markdown
Collaborator Author

I don't remember how the location is set.. what is the output for this macro?

#define X 1 \
    2 \
    3

I would need to recheck but it's all on one line

Comment thread addons/cppcheckdata.py
Comment thread lib/tokenize.cpp Outdated
Comment thread lib/preprocessor.cpp Outdated
@olabetskyi olabetskyi marked this pull request as ready for review June 19, 2024 11:24
@olabetskyi olabetskyi merged commit e7811ed into cppcheck-opensource:main Jun 19, 2024
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