Skip to content

build of clang apply replacement is failing with an "invalid conversion" #33317

@sylvestre

Description

@sylvestre
Bugzilla Link 33970
Resolution FIXED
Resolved on Jul 31, 2017 23:55
Version unspecified
OS Linux
Blocks #33196

Extended Description

with 5.0 svn branch 309348

/build/llvm-toolchain-5.0-5.0svn309348/tools/clang/tools/extra/clang-apply-replacements/tool/ClangApplyReplacementsMain.cpp: In function 'int main(int, char**)':
/build/llvm-toolchain-5.0-5.0
svn309348/tools/clang/tools/extra/clang-apply-replacements/tool/ClangApplyReplacementsMain.cpp:202:37: error: invalid conversion from 'void ()(llvm::raw_ostream&)' to 'void ()()' [-fpermissive]
cl::SetVersionPrinter(printVersion);
^
In file included from /build/llvm-toolchain-5.0-5.0svn309348/tools/clang/include/clang/Frontend/CommandLineSourceLoc.h:19:0,
from /build/llvm-toolchain-5.0-5.0
svn309348/tools/clang/include/clang/Frontend/FrontendOptions.h:13,
from /build/llvm-toolchain-5.0-5.0svn309348/tools/clang/include/clang/Frontend/FrontendAction.h:25,
from /build/llvm-toolchain-5.0-5.0
svn309348/tools/clang/include/clang/Tooling/Tooling.h:39,
from /build/llvm-toolchain-5.0-5.0svn309348/tools/clang/include/clang/Tooling/Refactoring.h:23,
from /build/llvm-toolchain-5.0-5.0
svn309348/tools/clang/tools/extra/clang-apply-replacements/include/clang-apply-replacements/Tooling/ApplyReplacements.h:20,
from /build/llvm-toolchain-5.0-5.0svn309348/tools/clang/tools/extra/clang-apply-replacements/tool/ClangApplyReplacementsMain.cpp:16:
/build/llvm-toolchain-5.0-5.0
svn309348/include/llvm/Support/CommandLine.h:74:6: note: initializing argument 1 of 'void llvm::cl::SetVersionPrinter(void (*)())'
void SetVersionPrinter(void (*func)());
^~~~~~~~~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions