Skip to content

Commit 11d5c4d

Browse files
authored
[clang-doc][NFC] Use isa<> over dyn_cast (#136445)
1 parent e512833 commit 11d5c4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang-tools-extra/clang-doc/Serialize.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,9 @@ static TypeInfo getTypeInfoForType(const QualType &T,
246246
return TypeInfo(Reference(SymbolID(), T.getAsString(Policy)));
247247

248248
InfoType IT;
249-
if (dyn_cast<EnumDecl>(TD)) {
249+
if (isa<EnumDecl>(TD)) {
250250
IT = InfoType::IT_enum;
251-
} else if (dyn_cast<RecordDecl>(TD)) {
251+
} else if (isa<RecordDecl>(TD)) {
252252
IT = InfoType::IT_record;
253253
} else {
254254
IT = InfoType::IT_default;

0 commit comments

Comments
 (0)