aboutsummaryrefslogtreecommitdiff
path: root/clang/tools/libclang/CIndexCodeCompletion.cpp
diff options
context:
space:
mode:
authorSirraide <74590115+Sirraide@users.noreply.github.com>2024-01-19 14:29:23 +0100
committerGitHub <noreply@github.com>2024-01-19 08:29:23 -0500
commit061eb62a9051ed06935135ffa3ea03eb250fd55e (patch)
treeffb786e7841aadf5b7682b4fc7167e5b020bdafa /clang/tools/libclang/CIndexCodeCompletion.cpp
parent9ad7d8f0e4628f0f2d70a6c30299fe8be6bc18c4 (diff)
downloadllvm-061eb62a9051ed06935135ffa3ea03eb250fd55e.zip
llvm-061eb62a9051ed06935135ffa3ea03eb250fd55e.tar.gz
llvm-061eb62a9051ed06935135ffa3ea03eb250fd55e.tar.bz2
[Clang] [NFC] Remove default argument in ASTUnit.h (#78566)
This removes a default argument that is currently broken in C++23 mode due to `std::default_delete` now being `constexpr`. This is a known problem (see #74963, #59966, #69996, and a couple more), fixing which will probably take some time, so this at least makes it possible to compile `ASTUnit.h` in C++23 mode. Note that we can’t simply include the header that provides the definition of the class causing the problem either, as that would create a circular dependency.
Diffstat (limited to 'clang/tools/libclang/CIndexCodeCompletion.cpp')
-rw-r--r--clang/tools/libclang/CIndexCodeCompletion.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/tools/libclang/CIndexCodeCompletion.cpp b/clang/tools/libclang/CIndexCodeCompletion.cpp
index 196c64e..3c5f390 100644
--- a/clang/tools/libclang/CIndexCodeCompletion.cpp
+++ b/clang/tools/libclang/CIndexCodeCompletion.cpp
@@ -765,7 +765,8 @@ clang_codeCompleteAt_Impl(CXTranslationUnit TU, const char *complete_filename,
IncludeBriefComments, Capture,
CXXIdx->getPCHContainerOperations(), *Results->Diag,
Results->LangOpts, *Results->SourceMgr, *Results->FileMgr,
- Results->Diagnostics, Results->TemporaryBuffers);
+ Results->Diagnostics, Results->TemporaryBuffers,
+ /*SyntaxOnlyAction=*/nullptr);
Results->DiagnosticsWrappers.resize(Results->Diagnostics.size());