aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/clang-uml/files/patch-src_common_clang__utils.cc
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/clang-uml/files/patch-src_common_clang__utils.cc')
-rw-r--r--graphics/clang-uml/files/patch-src_common_clang__utils.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/graphics/clang-uml/files/patch-src_common_clang__utils.cc b/graphics/clang-uml/files/patch-src_common_clang__utils.cc
new file mode 100644
index 000000000000..81f081831420
--- /dev/null
+++ b/graphics/clang-uml/files/patch-src_common_clang__utils.cc
@@ -0,0 +1,11 @@
+--- src/common/clang_utils.cc.orig 2025-01-20 07:36:53 UTC
++++ src/common/clang_utils.cc
+@@ -1019,7 +1019,7 @@ clang::RawComment *get_raw_comment(const clang::Source
+
+ if (!context.Comments.empty() &&
+ context.Comments.getCommentsInFile(file_id) != 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.getSpellingLineNumber(
+ raw_comment->getSourceRange().getEnd());