[cfe-dev] Build error

Csaba Raduly rcsaba at gmail.com
Mon Apr 28 00:48:54 PDT 2014


$ 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
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds



More information about the cfe-dev mailing list