Skip to content

Partial fix for #13875 (Document preprocessorErrorDirective) [ci skip]#7542

Merged
danmar merged 1 commit intocppcheck-opensource:mainfrom
cppchecksolutions:13875-preprocessorErrorDirective
May 20, 2025
Merged

Partial fix for #13875 (Document preprocessorErrorDirective) [ci skip]#7542
danmar merged 1 commit intocppcheck-opensource:mainfrom
cppchecksolutions:13875-preprocessorErrorDirective

Conversation

@danmar
Copy link
Copy Markdown
Collaborator

@danmar danmar commented May 19, 2025

No description provided.

@danmar danmar changed the title Partial fix for #13875 (Document preprocessorErrorDirective) Partial fix for #13875 (Document preprocessorErrorDirective) [ci skip] May 19, 2025
@danmar danmar force-pushed the 13875-preprocessorErrorDirective branch from c9cef08 to d080a7b Compare May 19, 2025 13:07
@danmar danmar requested a review from Copilot May 19, 2025 13:13
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds documentation for the preprocessorErrorDirective to clarify the usage and resolution of the #error directive in C and C++ code. The update describes the problem, explains the circumstances under which the warning appears, and provides code examples for fixing the issue by including gcc macros, library macros, or manually defined macros.

  • Added a new markdown document describing the preprocessorErrorDirective.
  • Detailed instructions and code snippets for resolving macro-related warnings.

Comment thread man/checkers/preprocessorErrorDirective.md Outdated
Comment thread man/checkers/preprocessorErrorDirective.md
Comment thread man/checkers/preprocessorErrorDirective.md Outdated
Comment thread man/checkers/preprocessorErrorDirective.md Outdated
@danmar danmar force-pushed the 13875-preprocessorErrorDirective branch 2 times, most recently from 90b3356 to 9829dd8 Compare May 20, 2025 07:56
@danmar danmar force-pushed the 13875-preprocessorErrorDirective branch from 9829dd8 to 37e7e26 Compare May 20, 2025 07:56
@danmar danmar merged commit 187d6ab into cppcheck-opensource:main May 20, 2025
@danmar danmar deleted the 13875-preprocessorErrorDirective branch May 20, 2025 07:59
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.

4 participants