summaryrefslogtreecommitdiff
path: root/graphics/clang-uml/files/patch-src_common_clang__utils.cc
blob: 193f4ccfec7f654a9ba959d47c7480d302cb57a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- src/common/clang_utils.cc.orig	2025-06-29 11:26:26 UTC
+++ src/common/clang_utils.cc
@@ -1023,7 +1023,7 @@ clang::RawComment *get_raw_comment(const clang::Source
     const auto *comments = context.Comments.getCommentsInFile(file_id);
 
     if (has_comments && comments != nullptr) {
-        for (const auto [offset, raw_comment] :
+        for (const auto & [offset, raw_comment] :
             *context.Comments.getCommentsInFile(sm.getFileID(expr_begin))) {
             const auto comment_end_line = sm.getExpansionLineNumber(
                 raw_comment->getSourceRange().getEnd());