compilerplugins/clang/colorcheck.cxx     |    2 ++
 compilerplugins/clang/elidestringvar.cxx |    2 ++
 compilerplugins/clang/flatten.cxx        |    1 +
 compilerplugins/clang/intvsfloat.cxx     |    1 +
 compilerplugins/clang/noexceptmove.cxx   |    2 ++
 compilerplugins/clang/writeonlyvars.cxx  |    1 +
 6 files changed, 9 insertions(+)

New commits:
commit 5d22865a140ebdc307d39226f1eedb955a7dafee
Author:     Stephan Bergmann <[email protected]>
AuthorDate: Mon Jan 30 11:33:11 2023 +0100
Commit:     Stephan Bergmann <[email protected]>
CommitDate: Mon Jan 30 14:55:14 2023 +0000

    Missing include for llvm::Optional
    
    ...with recent Clang 17 trunk after
    
<https://github.com/llvm/llvm-project/commit/125f4457a54a550846732763ee36b1447ec8d66e>
    "[clang] Remove clang::Optional"
    
    Change-Id: If33406604a614a65dd17e269a0a5c167ea263328
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146347
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <[email protected]>

diff --git a/compilerplugins/clang/colorcheck.cxx 
b/compilerplugins/clang/colorcheck.cxx
index 55f9034c675a..c3670598810f 100644
--- a/compilerplugins/clang/colorcheck.cxx
+++ b/compilerplugins/clang/colorcheck.cxx
@@ -15,6 +15,8 @@
 #include <fstream>
 #include <set>
 
+#include "llvm/ADT/Optional.h"
+
 #include "config_clang.h"
 
 #include "check.hxx"
diff --git a/compilerplugins/clang/elidestringvar.cxx 
b/compilerplugins/clang/elidestringvar.cxx
index 89e740d21904..172d7e8d81c0 100644
--- a/compilerplugins/clang/elidestringvar.cxx
+++ b/compilerplugins/clang/elidestringvar.cxx
@@ -13,6 +13,8 @@
 #include <cassert>
 #include <map>
 
+#include "llvm/ADT/Optional.h"
+
 #include "check.hxx"
 #include "plugin.hxx"
 
diff --git a/compilerplugins/clang/flatten.cxx 
b/compilerplugins/clang/flatten.cxx
index 8d7eac9d92b0..58492e71fb7a 100644
--- a/compilerplugins/clang/flatten.cxx
+++ b/compilerplugins/clang/flatten.cxx
@@ -8,6 +8,7 @@
  */
 
 #include "plugin.hxx"
+#include "llvm/ADT/Optional.h"
 #include <cassert>
 #include <string>
 #include <iostream>
diff --git a/compilerplugins/clang/intvsfloat.cxx 
b/compilerplugins/clang/intvsfloat.cxx
index 771e2bca0db5..1a57eb928b30 100644
--- a/compilerplugins/clang/intvsfloat.cxx
+++ b/compilerplugins/clang/intvsfloat.cxx
@@ -10,6 +10,7 @@
 
 #include "plugin.hxx"
 #include "check.hxx"
+#include "llvm/ADT/Optional.h"
 #include <iostream>
 
 /**
diff --git a/compilerplugins/clang/noexceptmove.cxx 
b/compilerplugins/clang/noexceptmove.cxx
index 4f242848a3c4..24d12f51fa34 100644
--- a/compilerplugins/clang/noexceptmove.cxx
+++ b/compilerplugins/clang/noexceptmove.cxx
@@ -13,6 +13,8 @@
 
 #include "config_clang.h"
 
+#include "llvm/ADT/Optional.h"
+
 #include <string>
 #include <set>
 
diff --git a/compilerplugins/clang/writeonlyvars.cxx 
b/compilerplugins/clang/writeonlyvars.cxx
index 3ea5356e4071..6aac4eaf997e 100644
--- a/compilerplugins/clang/writeonlyvars.cxx
+++ b/compilerplugins/clang/writeonlyvars.cxx
@@ -25,6 +25,7 @@
 #include "check.hxx"
 
 #include "clang/AST/ParentMapContext.h"
+#include "llvm/ADT/Optional.h"
 
 /**
   Finds variables that are effectively write-only.

Reply via email to