public inbox for annobin@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] clang-plugin: Update code to clang 18.1
@ 2024-02-26 20:02 Tulio Magno Quites Machado Filho
  0 siblings, 0 replies; only message in thread
From: Tulio Magno Quites Machado Filho @ 2024-02-26 20:02 UTC (permalink / raw)
  To: annobin

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-02-26 20:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-26 20:02 [PATCH] clang-plugin: Update code to clang 18.1 Tulio Magno Quites Machado Filho

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).