Skip to content

Commit a72870f

Browse files
committed
fixup! [clang-tidy] Added check to detect redundant inline keyword
Added test with macro
1 parent 11b5f8e commit a72870f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

clang-tools-extra/test/clang-tidy/checkers/readability/redundant-inline-specifier.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,9 @@ template <typename T> inline T fn8()
133133
{
134134
return T{};
135135
}
136+
137+
#define INLINE_MACRO() inline void fn9() { }
138+
INLINE_MACRO()
139+
140+
#define INLINE_KW inline
141+
INLINE_KW void fn10() { }

0 commit comments

Comments
 (0)