File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 1919
2020using namespace llvm ;
2121
22- void clang::EmitClangCommentHTMLTags (RecordKeeper &Records, raw_ostream &OS) {
23- std::vector<Record *> Tags = Records.getAllDerivedDefinitions (" Tag" );
22+ void clang::EmitClangCommentHTMLTags (const RecordKeeper &Records,
23+ raw_ostream &OS) {
24+ ArrayRef<const Record *> Tags = Records.getAllDerivedDefinitions (" Tag" );
2425 std::vector<StringMatcher::StringPair> Matches;
25- for (Record *Tag : Tags) {
26+ for (const Record *Tag : Tags) {
2627 Matches.emplace_back (std::string (Tag->getValueAsString (" Spelling" )),
2728 " return true;" );
2829 }
@@ -35,12 +36,12 @@ void clang::EmitClangCommentHTMLTags(RecordKeeper &Records, raw_ostream &OS) {
3536 << " }\n\n " ;
3637}
3738
38- void clang::EmitClangCommentHTMLTagsProperties (RecordKeeper &Records,
39+ void clang::EmitClangCommentHTMLTagsProperties (const RecordKeeper &Records,
3940 raw_ostream &OS) {
40- std::vector< Record *> Tags = Records.getAllDerivedDefinitions (" Tag" );
41+ ArrayRef< const Record *> Tags = Records.getAllDerivedDefinitions (" Tag" );
4142 std::vector<StringMatcher::StringPair> MatchesEndTagOptional;
4243 std::vector<StringMatcher::StringPair> MatchesEndTagForbidden;
43- for (Record *Tag : Tags) {
44+ for (const Record *Tag : Tags) {
4445 std::string Spelling = std::string (Tag->getValueAsString (" Spelling" ));
4546 StringMatcher::StringPair Match (Spelling, " return true;" );
4647 if (Tag->getValueAsBit (" EndTagOptional" ))
Original file line number Diff line number Diff line change @@ -84,9 +84,9 @@ void EmitClangDiagsIndexName(llvm::RecordKeeper &Records,
8484
8585void EmitClangSACheckers (llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
8686
87- void EmitClangCommentHTMLTags (llvm::RecordKeeper &Records,
87+ void EmitClangCommentHTMLTags (const llvm::RecordKeeper &Records,
8888 llvm::raw_ostream &OS);
89- void EmitClangCommentHTMLTagsProperties (llvm::RecordKeeper &Records,
89+ void EmitClangCommentHTMLTagsProperties (const llvm::RecordKeeper &Records,
9090 llvm::raw_ostream &OS);
9191void EmitClangCommentHTMLNamedCharacterReferences (
9292 const llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
You can’t perform that action at this time.
0 commit comments