hokein created this revision. hokein added a reviewer: sammccall. Herald added subscribers: usaxena95, kadircet, arphaman, jkorous. Herald added a project: clang. hokein requested review of this revision. Herald added subscribers: MaskRay, ilya-biryukov.
Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D86602 Files: clang-tools-extra/clangd/ClangdServer.h clang-tools-extra/clangd/tool/ClangdMain.cpp Index: clang-tools-extra/clangd/tool/ClangdMain.cpp =================================================================== --- clang-tools-extra/clangd/tool/ClangdMain.cpp +++ clang-tools-extra/clangd/tool/ClangdMain.cpp @@ -291,9 +291,8 @@ opt<bool> RecoveryASTType{ "recovery-ast-type", cat(Features), - desc("Preserve the type for recovery AST. Note that " - "this feature is experimental and may lead to crashes"), - init(false), + desc("Preserve the type for recovery AST."), + init(ClangdServer::Options().PreserveRecoveryASTType), Hidden, }; Index: clang-tools-extra/clangd/ClangdServer.h =================================================================== --- clang-tools-extra/clangd/ClangdServer.h +++ clang-tools-extra/clangd/ClangdServer.h @@ -131,7 +131,7 @@ bool BuildRecoveryAST = true; /// If true, turn on the `-frecovery-ast-type` clang flag. - bool PreserveRecoveryASTType = false; + bool PreserveRecoveryASTType = true; /// Clangd's workspace root. Relevant for "workspace" operations not bound /// to a particular file.
Index: clang-tools-extra/clangd/tool/ClangdMain.cpp =================================================================== --- clang-tools-extra/clangd/tool/ClangdMain.cpp +++ clang-tools-extra/clangd/tool/ClangdMain.cpp @@ -291,9 +291,8 @@ opt<bool> RecoveryASTType{ "recovery-ast-type", cat(Features), - desc("Preserve the type for recovery AST. Note that " - "this feature is experimental and may lead to crashes"), - init(false), + desc("Preserve the type for recovery AST."), + init(ClangdServer::Options().PreserveRecoveryASTType), Hidden, }; Index: clang-tools-extra/clangd/ClangdServer.h =================================================================== --- clang-tools-extra/clangd/ClangdServer.h +++ clang-tools-extra/clangd/ClangdServer.h @@ -131,7 +131,7 @@ bool BuildRecoveryAST = true; /// If true, turn on the `-frecovery-ast-type` clang flag. - bool PreserveRecoveryASTType = false; + bool PreserveRecoveryASTType = true; /// Clangd's workspace root. Relevant for "workspace" operations not bound /// to a particular file.
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits