gh-128152: Argument Clinic: ignore pre-processor directives inside C comments (#128464)

This commit is contained in:
Erlend E. Aasland 2025-01-04 11:46:04 +01:00 committed by GitHub
parent 03ede5afe2
commit a4e773c540
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 15 additions and 0 deletions

View file

@ -132,6 +132,9 @@ class Monitor:
if line_comment:
line = before.rstrip()
if self.in_comment:
return
if not line.startswith('#'):
return