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

Fixed #333: Check for valid SourceLocation of attributes. #334

Merged
merged 1 commit into from
Jul 26, 2020

Conversation

andreasfertig
Copy link
Owner

Functions like operator new and operator delete carry a hidden
attribute __attribute__((visibility("default"))) which has no valid
SourceLocation as it is inherited from the STL. This patch adds code
to use only a valid SourceLocation to apply the offset to it to get
the replacement range of the FunctionDecl.

Functions like `operator new` and `operator delete` carry a hidden
attribute `__attribute__((visibility("default")))` which has no valid
`SourceLocation` as it is inherited from the STL. This patch adds code
to use only a valid `SourceLocation` to apply the offset to it to get
the replacement range of the `FunctionDecl`.
@codecov
Copy link

codecov bot commented Jul 26, 2020

Codecov Report

Merging #334 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #334   +/-   ##
=======================================
  Coverage   97.87%   97.87%           
=======================================
  Files          23       23           
  Lines        2917     2920    +3     
=======================================
+ Hits         2855     2858    +3     
  Misses         62       62           
Impacted Files Coverage Δ
FunctionDeclHandler.cpp 100.00% <100.00%> (ø)

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 3d964b4...2b9be10. Read the comment docs.

@andreasfertig andreasfertig merged commit 50a0375 into master Jul 26, 2020
@andreasfertig andreasfertig deleted the fixIssue333 branch July 26, 2020 11:35
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.

1 participant