[clang-tools-extra] f885ae2 - clangd: Try to fix build with std::optional

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 1 14:59:45 PST 2022


Author: Matt Arsenault
Date: 2022-12-01T17:59:40-05:00
New Revision: f885ae231033877abcabf921815f75fae310f6bf

URL: https://github.com/llvm/llvm-project/commit/f885ae231033877abcabf921815f75fae310f6bf
DIFF: https://github.com/llvm/llvm-project/commit/f885ae231033877abcabf921815f75fae310f6bf.diff

LOG: clangd: Try to fix build with std::optional

Should have been in e748db0f7f0971dc258c6631ae1fb0a38cfdf9dd, but the
build option is well hidden.

Added: 
    

Modified: 
    clang-tools-extra/clangd/CompileCommands.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/CompileCommands.cpp b/clang-tools-extra/clangd/CompileCommands.cpp
index 3876cfce8316..2a808b4338b4 100644
--- a/clang-tools-extra/clangd/CompileCommands.cpp
+++ b/clang-tools-extra/clangd/CompileCommands.cpp
@@ -28,6 +28,7 @@
 #include "llvm/Support/Path.h"
 #include "llvm/Support/Program.h"
 #include <iterator>
+#include <optional>
 #include <string>
 #include <vector>
 


        


More information about the cfe-commits mailing list