[PATCH] D93164: [AST] Add generator for source location introspection

Nathan Chancellor via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 16 13:42:40 PDT 2021


nathanchance added a comment.

I am seeing a spew of errors after 19740652c4c4329e2b9e77f96e5e31c360b4e8bb <https://reviews.llvm.org/rG19740652c4c4329e2b9e77f96e5e31c360b4e8bb> (what appears to be the latest version of this patch):

  $ cmake \
  -G Ninja \
  -DCMAKE_BUILD_TYPE=Release \
  -DCMAKE_C_COMPILER=$(command -v clang) \
  -DCMAKE_CXX_COMPILER=$(command -v clang++) \
  -DLLVM_CCACHE_BUILD=ON \
  -DLLVM_ENABLE_PROJECTS=clang \
  ../llvm
  ...
  
  $ ninja run-ast-api-dump-tool
  ...
  In file included from /home/nathan/src/llvm-project/build/tools/clang/lib/Tooling/ASTTU.cpp:2:
  In file included from /home/nathan/src/llvm-project/llvm/../clang/include/clang/AST/AST.h:17:
  In file included from /home/nathan/src/llvm-project/llvm/../clang/include/clang/AST/ASTContext.h:19:
  In file included from /home/nathan/src/llvm-project/llvm/../clang/include/clang/AST/CanonicalType.h:17:
  In file included from /home/nathan/src/llvm-project/llvm/../clang/include/clang/AST/Type.h:20:
  In file included from /home/nathan/src/llvm-project/llvm/../clang/include/clang/AST/DependenceFlags.h:11:
  In file included from /home/nathan/src/llvm-project/llvm/../clang/include/clang/Basic/BitmaskEnum.h:18:
  In file included from /home/nathan/src/llvm-project/llvm/include/llvm/ADT/BitmaskEnum.h:16:
  In file included from /home/nathan/src/llvm-project/llvm/include/llvm/Support/MathExtras.h:21:
  /usr/include/c++/10.2.0/cstdint:52:11: error: no member named 'int_fast8_t' in the global namespace
    using ::int_fast8_t;
          ~~^
  /usr/include/c++/10.2.0/cstdint:53:11: error: no member named 'int_fast16_t' in the global namespace; did you mean '__int_least16_t'?
    using ::int_fast16_t;
          ~~^
  /usr/include/bits/types.h:54:19: note: '__int_least16_t' declared here
  typedef __int16_t __int_least16_t;
                    ^
  In file included from /home/nathan/src/llvm-project/build/tools/clang/lib/Tooling/ASTTU.cpp:2:
  In file included from /home/nathan/src/llvm-project/llvm/../clang/include/clang/AST/AST.h:17:
  In file included from /home/nathan/src/llvm-project/llvm/../clang/include/clang/AST/ASTContext.h:19:
  In file included from /home/nathan/src/llvm-project/llvm/../clang/include/clang/AST/CanonicalType.h:17:
  In file included from /home/nathan/src/llvm-project/llvm/../clang/include/clang/AST/Type.h:20:
  In file included from /home/nathan/src/llvm-project/llvm/../clang/include/clang/AST/DependenceFlags.h:11:
  In file included from /home/nathan/src/llvm-project/llvm/../clang/include/clang/Basic/BitmaskEnum.h:18:
  In file included from /home/nathan/src/llvm-project/llvm/include/llvm/ADT/BitmaskEnum.h:16:
  In file included from /home/nathan/src/llvm-project/llvm/include/llvm/Support/MathExtras.h:21:
  /usr/include/c++/10.2.0/cstdint:54:11: error: no member named 'int_fast32_t' in the global namespace; did you mean '__int_least32_t'?
    using ::int_fast32_t;
          ~~^
  /usr/include/bits/types.h:56:19: note: '__int_least32_t' declared here
  typedef __int32_t __int_least32_t;
                    ^
  In file included from /home/nathan/src/llvm-project/build/tools/clang/lib/Tooling/ASTTU.cpp:2:
  In file included from /home/nathan/src/llvm-project/llvm/../clang/include/clang/AST/AST.h:17:
  In file included from /home/nathan/src/llvm-project/llvm/../clang/include/clang/AST/ASTContext.h:19:
  In file included from /home/nathan/src/llvm-project/llvm/../clang/include/clang/AST/CanonicalType.h:17:
  In file included from /home/nathan/src/llvm-project/llvm/../clang/include/clang/AST/Type.h:20:
  In file included from /home/nathan/src/llvm-project/llvm/../clang/include/clang/AST/DependenceFlags.h:11:
  In file included from /home/nathan/src/llvm-project/llvm/../clang/include/clang/Basic/BitmaskEnum.h:18:
  In file included from /home/nathan/src/llvm-project/llvm/include/llvm/ADT/BitmaskEnum.h:16:
  In file included from /home/nathan/src/llvm-project/llvm/include/llvm/Support/MathExtras.h:21:
  /usr/include/c++/10.2.0/cstdint:55:11: error: no member named 'int_fast64_t' in the global namespace; did you mean '__int_least64_t'?
    using ::int_fast64_t;
          ~~^
  /usr/include/bits/types.h:58:19: note: '__int_least64_t' declared here
  typedef __int64_t __int_least64_t;
                    ^
  ...


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D93164/new/

https://reviews.llvm.org/D93164



More information about the cfe-commits mailing list