[clang-tools-extra] 58592f6 - Include <cstdlib> for std::abort() in clangd

Hans Wennborg via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 27 06:15:34 PST 2020


Merged to 10.x in 23d93923900834dd873cde2ea54f7c3a0e071802

On Fri, Jan 24, 2020 at 11:53 AM Dimitry Andric via cfe-commits
<cfe-commits at lists.llvm.org> wrote:
>
>
> Author: Dimitry Andric
> Date: 2020-01-24T20:52:37+01:00
> New Revision: 58592f6c49249293f79698cfcb31dba532e12603
>
> URL: https://github.com/llvm/llvm-project/commit/58592f6c49249293f79698cfcb31dba532e12603
> DIFF: https://github.com/llvm/llvm-project/commit/58592f6c49249293f79698cfcb31dba532e12603.diff
>
> LOG: Include <cstdlib> for std::abort() in clangd
>
> This fixes a "not a member of 'std'" error with e.g. Fedora 32.
>
> Closes: #105
>
> Added:
>
>
> Modified:
>     clang-tools-extra/clangd/Shutdown.cpp
>
> Removed:
>
>
>
> ################################################################################
> diff  --git a/clang-tools-extra/clangd/Shutdown.cpp b/clang-tools-extra/clangd/Shutdown.cpp
> index dfea46d8dfeb..36d977570a4f 100644
> --- a/clang-tools-extra/clangd/Shutdown.cpp
> +++ b/clang-tools-extra/clangd/Shutdown.cpp
> @@ -9,6 +9,7 @@
>  #include "Shutdown.h"
>
>  #include <atomic>
> +#include <cstdlib>
>  #include <thread>
>
>  namespace clang {
>
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


More information about the cfe-commits mailing list