1// RUN: %check_clang_tidy -std=c++20 %s misc-use-internal-linkage %t -- -- -I%S/Inputs/use-internal-linkage
2
3consteval void gh122096() {}
4
5constexpr void cxf() {}
6// CHECK-MESSAGES: :[[@LINE-1]]:16: warning: function 'cxf'
7// CHECK-FIXES: static constexpr void cxf() {}
8

Provided by KDAB

Privacy Policy
Improve your Profiling and Debugging skills
Find out more

source code of clang-tools-extra/test/clang-tidy/checkers/misc/use-internal-linkage-consteval.cpp