diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2023-01-30 11:33:11 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2023-01-30 14:55:14 +0000 |
commit | 5d22865a140ebdc307d39226f1eedb955a7dafee (patch) | |
tree | c0233228bafd1010008c07596e21419fc1d041d4 /compilerplugins/clang | |
parent | 1f474cbb8acdf6855db1f835fe58d198bdbabcbc (diff) |
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 <sbergman@redhat.com>
Diffstat (limited to 'compilerplugins/clang')
-rw-r--r-- | compilerplugins/clang/colorcheck.cxx | 2 | ||||
-rw-r--r-- | compilerplugins/clang/elidestringvar.cxx | 2 | ||||
-rw-r--r-- | compilerplugins/clang/flatten.cxx | 1 | ||||
-rw-r--r-- | compilerplugins/clang/intvsfloat.cxx | 1 | ||||
-rw-r--r-- | compilerplugins/clang/noexceptmove.cxx | 2 | ||||
-rw-r--r-- | compilerplugins/clang/writeonlyvars.cxx | 1 |
6 files changed, 9 insertions, 0 deletions
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. |