blob: 5ac821ad466fe019082a35c9f7b493fc1ce1e299 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// RUN: %check_clang_tidy %s modernize-use-nodiscard %t -- \
// RUN: -config="{CheckOptions: [{key: modernize-use-nodiscard.ReplacementString, value: 'CUSTOM_NO_DISCARD'}]}"
// As if the macro was not defined.
// #define CUSTOM_NO_DISCARD __attribute_((warn_unused_result))
class Foo
{
public:
bool f1() const;
// CHECK-MESSAGES: :[[@LINE-1]]:5: warning: function 'f1' should be marked CUSTOM_NO_DISCARD [modernize-use-nodiscard]
};
|