File tree Expand file tree Collapse file tree 1 file changed +8
-16
lines changed Expand file tree Collapse file tree 1 file changed +8
-16
lines changed Original file line number Diff line number Diff line change @@ -499,22 +499,14 @@ class Parser final {
499
499
500
500
std::vector<FunctionDefinitionAST*> pendingFunctionDefinitions_;
501
501
502
- std::unordered_map<SourceLocation,
503
- std::tuple<SourceLocation, ClassSpecifierAST*, bool >>
504
- class_specifiers_;
505
-
506
- std::unordered_map<
507
- SourceLocation,
508
- std::tuple<SourceLocation, ElaboratedTypeSpecifierAST*, bool >>
509
- elaborated_type_specifiers_;
510
-
511
- std::unordered_map<SourceLocation,
512
- std::tuple<SourceLocation, TemplateArgumentAST*, bool >>
513
- template_arguments_;
514
-
515
- std::unordered_map<SourceLocation,
516
- std::tuple<SourceLocation, NestedNameSpecifierAST*, bool >>
517
- nested_name_specifiers_;
502
+ template <typename T>
503
+ using CachedAST =
504
+ std::unordered_map<SourceLocation, std::tuple<SourceLocation, T*, bool >>;
505
+
506
+ CachedAST<ClassSpecifierAST> class_specifiers_;
507
+ CachedAST<ElaboratedTypeSpecifierAST> elaborated_type_specifiers_;
508
+ CachedAST<TemplateArgumentAST> template_arguments_;
509
+ CachedAST<NestedNameSpecifierAST> nested_name_specifiers_;
518
510
};
519
511
520
512
} // namespace cxx
You can’t perform that action at this time.
0 commit comments