Skip to content
  • Douglas Gregor's avatar
    Add hook to add attributes to function declarations that we know · e711f705
    Douglas Gregor authored
    about, whether they are builtins or not. Use this to add the
    appropriate "format" attribute to NSLog, NSLogv, asprintf, and
    vasprintf, and to translate builtin attributes (from Builtins.def)
    into actual attributes on the function declaration.
    
    Use the "printf" format attribute on function declarations to
    determine whether we should do format string checking, rather than
    looking at an ad hoc list of builtins and "known" function names.
    
    Be a bit more careful about when we consider a function a "builtin" in
    C++.
    
    llvm-svn: 64561
    e711f705
Loading