Skip to content

[clang]Build failing due to errors in clang/include/clang-c/Index.h #62640

@chaitanyav

Description

@chaitanyav

I am getting the following errors when building clang

In file included from /home/nvellanki/scratch/llvm-project/clang/include/clang/Frontend/ASTUnit.h:16,
                 from /home/nvellanki/scratch/llvm-project/clang/include/clang/Frontend/FrontendAction.h:23,
                 from /home/nvellanki/scratch/llvm-project/clang/include/clang/CodeGen/CodeGenAction.h:12,
                 from /home/nvellanki/scratch/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:9:
/home/nvellanki/scratch/llvm-project/clang/include/clang-c/Index.h:3877:9: error: ‘_CXChildVisitResult’ does not name a type; did you mean ‘CXChildVisitResult’?
 3877 | typedef _CXChildVisitResult *CXCursorVisitorBlock;
      |         ^~~~~~~~~~~~~~~~~~~
      |         CXChildVisitResult
/home/nvellanki/scratch/llvm-project/clang/include/clang-c/Index.h:3885:47: error: ‘CXCursorVisitorBlock’ has not been declared
 3885 | clang_visitChildrenWithBlock(CXCursor parent, CXCursorVisitorBlock block);
      |                                               ^~~~~~~~~~~~~~~~~~~~

I think its due to this commit ce5ad23

Metadata

Metadata

Assignees

Labels

build-problemclangClang issues not falling into any other category

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions