http://llvm.org/bugs/show_bug.cgi?id=16968

            Bug ID: 16968
           Summary: format attribute not propagated across usage
           Product: clang
           Version: 3.3
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Created attachment 11083
  --> http://llvm.org/bugs/attachment.cgi?id=11083&action=edit
compile with `clang -Weverything -c foo.c`

When specifying format attribute for functions where the intended argument must
be of literal string, if said string is passed off to another function that
requires said argument to be of a string-literal, warnings will occur.
Interestingly standard-library marked functions can be wrapped and no warnings
will occur, this seems to only manifest with user-defined wrappers around other
attribute format wrappers. Included is an attachment showing the problem as
described and various methods of trying to get around it, annotated of course.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to