Skip to content
Snippets Groups Projects
  • Jordan Rose's avatar
    50687314
    Teach format string checking about compile-time CFString constants. · 50687314
    Jordan Rose authored
    Within the guts of CheckFormatHandler, the IsObjCLiteral flag was being used in
    two ways: to see if null bytes were allowed, and to see if the '%@' specifier
    is allowed.* The former usage has been changed to an explicit test and the
    latter pushed down to CheckPrintfHandler and renamed ObjCContext, since it
    applies to CFStrings as well.
    
    * This also changes how wide chars are interpreted; in OS X Foundation, the
    wide character type is 'unichar', a typedef for short, rather than wchar_t.
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157968 91177308-0d34-0410-b5e6-96231b3b80d8
    50687314
    History
    Teach format string checking about compile-time CFString constants.
    Jordan Rose authored
    Within the guts of CheckFormatHandler, the IsObjCLiteral flag was being used in
    two ways: to see if null bytes were allowed, and to see if the '%@' specifier
    is allowed.* The former usage has been changed to an explicit test and the
    latter pushed down to CheckPrintfHandler and renamed ObjCContext, since it
    applies to CFStrings as well.
    
    * This also changes how wide chars are interpreted; in OS X Foundation, the
    wide character type is 'unichar', a typedef for short, rather than wchar_t.
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157968 91177308-0d34-0410-b5e6-96231b3b80d8
Code owners
Assign users and groups as approvers for specific file changes. Learn more.