Build error

$ make happiness
...
Updated to revision 207400.
At revision 207400.
Updated to revision 207400.
Updated to revision 539.
Updated to revision 207400.
...
/home/csaba/workspace/LLVM/llvm/tools/clang/tools/extra/clang-modernize/tool/ClangModernize.cpp:
In function 'int main(int, const char**)':
/home/csaba/workspace/LLVM/llvm/tools/clang/tools/extra/clang-modernize/tool/ClangModernize.cpp:472:68:
error: no matching function for call to
'clang::tooling::ClangTool::run(std::unique_ptr<clang::tooling::FrontendActionFactory>)'
     if (SyntaxTool.run(newFrontendActionFactory<SyntaxOnlyAction>()) != 0)
                                                                    ^
/home/csaba/workspace/LLVM/llvm/tools/clang/tools/extra/clang-modernize/tool/ClangModernize.cpp:472:68:
note: candidate is:
In file included from
/home/csaba/workspace/LLVM/llvm/tools/clang/tools/extra/clang-modernize/tool/../../../../include/clang/Tooling/Refactoring.h:23:0,
                 from
/home/csaba/workspace/LLVM/llvm/tools/clang/tools/extra/clang-modernize/tool/../Core/Refactoring.h:20,
                 from
/home/csaba/workspace/LLVM/llvm/tools/clang/tools/extra/clang-modernize/tool/../Core/Transform.h:20,
                 from
/home/csaba/workspace/LLVM/llvm/tools/clang/tools/extra/clang-modernize/tool/../Core/PerfSupport.h:19,
                 from
/home/csaba/workspace/LLVM/llvm/tools/clang/tools/extra/clang-modernize/tool/ClangModernize.cpp:18:
/home/csaba/workspace/LLVM/llvm/tools/clang/tools/extra/clang-modernize/tool/../../../../include/clang/Tooling/Tooling.h:283:7:
note: int clang::tooling::ClangTool::run(clang::tooling::ToolAction*)
   int run(ToolAction *Action);
       ^
/home/csaba/workspace/LLVM/llvm/tools/clang/tools/extra/clang-modernize/tool/../../../../include/clang/Tooling/Tooling.h:283:7:
note: no known conversion for argument 1 from
'std::unique_ptr<clang::tooling::FrontendActionFactory>' to
'clang::tooling::ToolAction*'
/home/csaba/workspace/LLVM/llvm/tools/clang/tools/extra/clang-modernize/tool/ClangModernize.cpp:
At global scope:
/home/csaba/workspace/LLVM/llvm/tools/clang/tools/extra/clang-modernize/tool/ClangModernize.cpp:496:12:
warning: 'TransformsAnchorsDestination' defined but not used
[-Wunused-variable]
static int TransformsAnchorsDestination[] = {
            ^

Looks like clang-modernize wasn't updated to follow an interface change.

Csaba

I'm getting the same error...

Ahmed was last to change these files…

Fixed sometime before r207412

Indeed, my bots are getting green again.

cheers,
--renato