[clang-tools-extra] r216901 - Remove unused AST matcher.
Benjamin Kramer
benny.kra at googlemail.com
Tue Sep 2 02:46:43 PDT 2014
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/clang-tidy/google/IntegerTypesCheck.cpp
clang-tools-extra/trunk/test/clang-tidy/google-runtime-int.cpp
Modified: clang-tools-extra/trunk/clang-tidy/google/IntegerTypesCheck.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/google/IntegerTypesCheck.cpp?rev=216901&r1=216900&r2=216901&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/google/IntegerTypesCheck.cpp (original)
+++ clang-tools-extra/trunk/clang-tidy/google/IntegerTypesCheck.cpp Tue Sep 2 04:46:43 2014
@@ -15,11 +15,6 @@
#include "clang/Basic/TargetInfo.h"
namespace clang {
-
-namespace ast_matchers {
-const internal::VariadicDynCastAllOfMatcher<Decl, TypedefDecl> typedefDecl;
-} // namespace ast_matchers
-
namespace tidy {
namespace runtime {
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'
More information about the cfe-commits
mailing list