-
Notifications
You must be signed in to change notification settings - Fork 15.5k
Open
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"
Description
| Bugzilla Link | 34557 |
| Version | unspecified |
| OS | All |
Extended Description
A common way to do autoconf-style tests for declarations in headers uses the following approach:
int main(void) { (void)strlcpy; return 0; }
This should fail with unknown identifier errors, but currently passes with a implicit prototype warning for GNUish language modes (i.e. gnu89, gnu99 etc). It fails for "unknown" identifiers like strlcpy2. This is a pretty bad error as it can lead to incorrect autodetection of system headers.
Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"