Skip to content

Commit 26c649a

Browse files
committed
remove useless inline. add const to field decl param
1 parent ff26d33 commit 26c649a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaDeclCXX.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3316,7 +3316,7 @@ inline static bool HasAttribute(const QualType &T) {
33163316
return false;
33173317
}
33183318

3319-
inline static bool IsUnusedPrivateField(FieldDecl *FD) {
3319+
static bool IsUnusedPrivateField(const FieldDecl *FD) {
33203320
if (FD->getAccess() == AS_private && FD->getDeclName()) {
33213321
QualType FieldType = FD->getType();
33223322
if (HasAttribute<WarnUnusedAttr>(FieldType))

0 commit comments

Comments
 (0)