Skip to content

Commit 83910de

Browse files
[libclang] Fix a warning
This patch fixes: clang/tools/libclang/CXIndexDataConsumer.cpp:1235:11: error: enumeration value 'IncludeDirective' not handled in switch [-Werror,-Wswitch]
1 parent 58996c0 commit 83910de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/tools/libclang/CXIndexDataConsumer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,6 +1241,7 @@ static CXIdxEntityKind getEntityKindFromSymbolKind(SymbolKind K, SymbolLanguage
12411241
case SymbolKind::TemplateTypeParm:
12421242
case SymbolKind::TemplateTemplateParm:
12431243
case SymbolKind::NonTypeTemplateParm:
1244+
case SymbolKind::IncludeDirective:
12441245
return CXIdxEntity_Unexposed;
12451246

12461247
case SymbolKind::Enum: return CXIdxEntity_Enum;

0 commit comments

Comments
 (0)