This is an archive of the discontinued LLVM Phabricator instance.

[ExprInspectionChecker] Improve usability for C
ClosedPublic

Authored by loladiro on Mar 3 2017, 1:20 PM.

Details

Summary

Some of the magic functions take arguments of arbitrary type. However,
for semantic correctness, the compiler still requires a declaration
of these functions with the correct type. Since C does not have
argument-type-overloaded function, this made those functions hard to
use in C code. Improve this situation by allowing arbitrary suffixes
in the affected magic functions' names, thus allowing the user to
create different declarations for different types.

Diff Detail

Repository
rL LLVM

Event Timeline

loladiro created this revision.Mar 3 2017, 1:20 PM
NoQ accepted this revision.Mar 3 2017, 2:29 PM

Thanks! This bugged me as well, but i didn't think of this trick :)

This revision is now accepted and ready to land.Mar 3 2017, 2:29 PM
This revision was automatically updated to reflect the committed changes.