[clang] 1470b85 - Remove AST inclusion from Basic include

Roman Lebedev via cfe-commits cfe-commits at lists.llvm.org
Wed May 12 11:02:01 PDT 2021


Thanks!

On Wed, May 12, 2021 at 8:56 PM Benjamin Kramer via cfe-commits
<cfe-commits at lists.llvm.org> wrote:
>
>
> Author: Benjamin Kramer
> Date: 2021-05-12T19:51:21+02:00
> New Revision: 1470b8587f6fdc357163c2258747b77ae9ad6d7a
>
> URL: https://github.com/llvm/llvm-project/commit/1470b8587f6fdc357163c2258747b77ae9ad6d7a
> DIFF: https://github.com/llvm/llvm-project/commit/1470b8587f6fdc357163c2258747b77ae9ad6d7a.diff
>
> LOG: Remove AST inclusion from Basic include
>
> That's a cyclic dependency. NFC.
>
> Added:
>
>
> Modified:
>     clang/include/clang/Basic/Thunk.h
>
> Removed:
>
>
>
> ################################################################################
> diff  --git a/clang/include/clang/Basic/Thunk.h b/clang/include/clang/Basic/Thunk.h
> index 7f3c4b24ec6d..91088be6ae73 100644
> --- a/clang/include/clang/Basic/Thunk.h
> +++ b/clang/include/clang/Basic/Thunk.h
> @@ -15,10 +15,13 @@
>  #ifndef LLVM_CLANG_BASIC_THUNK_H
>  #define LLVM_CLANG_BASIC_THUNK_H
>
> -#include "clang/AST/GlobalDecl.h"
> +#include <cstdint>
> +#include <cstring>
>
>  namespace clang {
>
> +class CXXMethodDecl;
> +
>  /// A return adjustment.
>  struct ReturnAdjustment {
>    /// The non-virtual adjustment from the derived object to its
>
>
>
> _______________________________________________
> 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