xref: /llvm-project/clang-tools-extra/test/clang-tidy/checkers/misc/use-internal-linkage-consteval.cpp (revision 6504546abcd38159256c3030286b1c02b401c4f8)
1*6504546aSmaflcko // RUN: %check_clang_tidy -std=c++20 %s misc-use-internal-linkage %t -- -- -I%S/Inputs/use-internal-linkage
2*6504546aSmaflcko 
3*6504546aSmaflcko consteval void gh122096() {}
4*6504546aSmaflcko 
5*6504546aSmaflcko constexpr void cxf() {}
6*6504546aSmaflcko // CHECK-MESSAGES: :[[@LINE-1]]:16: warning: function 'cxf'
7*6504546aSmaflcko // CHECK-FIXES: static constexpr void cxf() {}
8