[clang-tools-extra] r216901 - Remove unused AST matcher.

Dmitri Gribenko gribozavr at gmail.com
Tue Sep 2 04:49:49 PDT 2014


On Tue, Sep 2, 2014 at 10:46 AM, Benjamin Kramer
<benny.kra at googlemail.com> wrote:
> Author: d0k
> Date: Tue Sep  2 04:46:43 2014
> New Revision: 216901
>
> URL: http://llvm.org/viewvc/llvm-project?rev=216901&view=rev
> Log:
> Remove unused AST matcher.

[...]

> Modified: clang-tools-extra/trunk/test/clang-tidy/google-runtime-int.cpp
> URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clang-tidy/google-runtime-int.cpp?rev=216901&r1=216900&r2=216901&view=diff
> ==============================================================================
> --- clang-tools-extra/trunk/test/clang-tidy/google-runtime-int.cpp (original)
> +++ clang-tools-extra/trunk/test/clang-tidy/google-runtime-int.cpp Tue Sep  2 04:46:43 2014
> @@ -41,6 +41,9 @@ short bar(const short, unsigned short) {
>    unsigned short porthole;
>  // CHECK: [[@LINE-1]]:3: warning: consider replacing 'unsigned short' with 'uint16'
>
> +  uint64 cast = (short)42;
> +// CHECK: [[@LINE-1]]:18: warning: consider replacing 'short' with 'int16'
> +
>  #define l long
>    l x;
>
> @@ -48,6 +51,8 @@ short bar(const short, unsigned short) {
>  // CHECK: [[@LINE-1]]:8: warning: consider replacing 'short' with 'int16'
>  }
>
> +void p(unsigned short port);
> +
>  void qux() {
>    short port;
>  // CHECK: [[@LINE-1]]:3: warning: consider replacing 'short' with 'int16'

An unrelated change?

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/



More information about the cfe-commits mailing list