Skip to content

Commit 6503b7e

Browse files
committed
Add indices to the location.range field in the CppAstNode table.
1 parent 20583f8 commit 6503b7e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugins/cpp/model/include/model/cppastnode.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ struct CppAstNode
8888
#pragma db index("location_file_idx") member(location.file)
8989
#pragma db index("entityHash_astType_idx") members(entityHash, astType)
9090
#pragma db index("astType_symbolType_idx") members(astType, symbolType)
91+
#pragma db index("location_range_start_idx") members(location.range.start.line, location.range.start.column)
92+
#pragma db index("location_range_end_idx") members(location.range.end.line, location.range.end.column)
9193
};
9294

9395
typedef std::shared_ptr<CppAstNode> CppAstNodePtr;

0 commit comments

Comments
 (0)