]> granicus.if.org Git - clang/commit
add support for custom client-specific diagnostics. As a testcase, make the
authorChris Lattner <sabre@nondot.org>
Sun, 2 Dec 2007 01:09:57 +0000 (01:09 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 2 Dec 2007 01:09:57 +0000 (01:09 +0000)
commit182745ae7892bca0842d9c023370ade5f8d1c6e8
tree97b1bd149c792843070cfec3b3ec46381e18a8a3
parent6f0768bc565028d2536fc41ee0d466c13985a921
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44498 91177308-0d34-0410-b5e6-96231b3b80d8
Basic/Diagnostic.cpp
Driver/RewriteTest.cpp
include/clang/Basic/Diagnostic.h