Skip to content
  • Chandler Carruth's avatar
    Improve the diagnostic text for -Wmissing-noreturn to include the name · c841b6e5
    Chandler Carruth authored
    of the function in question when applicable (that is, not for blocks).
    Patch by Joerg Sonnenberger with some stylistic tweaks by me.
    
    When discussing this weth Joerg, streaming the decl directly into the
    diagnostic didn't work because we have a pointer-to-const, and the
    overload doesn't accept such. In order to make my style tweaks to the
    patch, I first changed the overload to accept a pointer-to-const, and
    then changed the diagnostic printing layer to also use
    a pointer-to-const, cleaning up a gross line of code along the way.
    
    llvm-svn: 138854
    c841b6e5
Loading