Skip to content

Rename __AWS_LC_ENSURE to AWS_LC_ENSURE to avoid reserved identifier#3137

Open
torben-hansen wants to merge 1 commit intoaws:mainfrom
torben-hansen:ensure_macro_name
Open

Rename __AWS_LC_ENSURE to AWS_LC_ENSURE to avoid reserved identifier#3137
torben-hansen wants to merge 1 commit intoaws:mainfrom
torben-hansen:ensure_macro_name

Conversation

@torben-hansen
Copy link
Copy Markdown
Contributor

Description of changes:

The __AWS_LC_ENSURE macro uses a double-underscore prefix, which is reserved by the C and C++ standards: Identifiers starting with double underscores are reserved by the C and C++ standards (C11 §7.1.3, C++17 §5.10) for the implementation. Using reserved identifiers is technically undefined behavior.

No functional change. The macro is internal-only and not exposed in any public header.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.

Identifiers starting with double underscores are reserved by the C and
C++ standards (C11 §7.1.3, C++17 §5.10) for the implementation. Rename
the internal macro to use the existing AWS_LC_ prefix convention.
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.96%. Comparing base (a75e930) to head (6f4d38c).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3137   +/-   ##
=======================================
  Coverage   77.95%   77.96%           
=======================================
  Files         689      689           
  Lines      122506   122505    -1     
  Branches    17095    17094    -1     
=======================================
+ Hits        95505    95512    +7     
+ Misses      26102    26094    -8     
  Partials      899      899           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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