diff options
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/google-runtime-int.cpp')
-rw-r--r-- | clang-tools-extra/test/clang-tidy/google-runtime-int.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang-tools-extra/test/clang-tidy/google-runtime-int.cpp b/clang-tools-extra/test/clang-tidy/google-runtime-int.cpp index 53bdefda0e2..6529ffcaa19 100644 --- a/clang-tools-extra/test/clang-tidy/google-runtime-int.cpp +++ b/clang-tools-extra/test/clang-tidy/google-runtime-int.cpp @@ -49,6 +49,7 @@ short bar(const short, unsigned short) { tmpl<short>(); // CHECK-MESSAGES: [[@LINE-1]]:8: warning: consider replacing 'short' with 'int16' + return 0; } void p(unsigned short port); @@ -57,3 +58,10 @@ void qux() { short port; // CHECK-MESSAGES: [[@LINE-1]]:3: warning: consider replacing 'short' with 'int16' } + +// FIXME: This shouldn't warn, as UD-literal operators require one of a handful +// of types as an argument. +struct some_value {}; +constexpr some_value operator"" _some_literal(unsigned long long int i); +// CHECK-MESSAGES: [[@LINE-1]]:47: warning: consider replacing 'unsigned long long' + |