From: Tulio Magno Quites Machado Filho <tuliom@ascii.art.br>
To: annobin@sourceware.org
Subject: [PATCH] clang-plugin: Update code to clang 18.1
Date: Mon, 26 Feb 2024 17:02:43 -0300 [thread overview]
Message-ID: <20240226200243.729452-1-tuliom@ascii.art.br> (raw)
From: Tulio Magno Quites Machado Filho <tuliom@redhat.com>
Update the code in order to use the API available in clang 18.1.0 RC3.
Fix BZ #31414.
---
clang-plugin/annobin.cpp | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/clang-plugin/annobin.cpp b/clang-plugin/annobin.cpp
index c6eea64..af38e15 100644
--- a/clang-plugin/annobin.cpp
+++ b/clang-plugin/annobin.cpp
@@ -204,7 +204,9 @@ private:
(Context,
TU,
clang::StringLiteral::Create (Context, text,
-#if CLANG_VERSION_MAJOR > 14
+#if CLANG_VERSION_MAJOR > 17
+ clang::StringLiteralKind::Ordinary,
+#elif CLANG_VERSION_MAJOR > 14
clang::StringLiteral::Ordinary,
#else
clang::StringLiteral::Ascii,
@@ -215,7 +217,11 @@ private:
#if CLANG_VERSION_MAJOR > 8
nullptr,
#endif
+#if CLANG_VERSION_MAJOR > 17
+ clang::ArraySizeModifier::Normal,
+#else
clang::ArrayType::Normal,
+#endif
/*IndexTypeQuals*/ 0),
SourceLocation ()),
{},
--
2.43.0
reply other threads:[~2024-02-26 20:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240226200243.729452-1-tuliom@ascii.art.br \
--to=tuliom@ascii.art.br \
--cc=annobin@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).