add support for custom client-specific diagnostics.  As a testcase, make the 
rewriter emit this error if it fails to rewrite an @encode:

t.m:17:9: error: rewriter could not replace sub-expression due to macros
    c = ENC(char *)[2] + 4;
        ^~~~~~~~~~~

... where ENC is: #define ENC @encode

llvm-svn: 44498
3 files changed
tree: 572900fb34936998e3aa556e6678cc518591c6b6
  1. clang/
  2. llvm/