weixin_39822993 2020-11-30 11:25
浏览 0

compile error with llvm/clang release_31 branch

Originally reported on Google Code with ID 76


What steps will reproduce the problem?  Give the *exact* arguments passed
to include-what-you-use, and attach the input source file that gives the
problem (minimal test-cases are much appreciated!)
1. check out llvm from branches/release_31
2. check out corresponding clang and related subdirs
3. check out iwyu current trunk

What is the expected output? What do you see instead?
should compile and link.

instead, it errors with this:
iwyu.cc: In member function ‘virtual clang::ASTConsumer* include_what_you_use::IwyuAction::CreateASTConsumer(clang::CompilerInstance&,
llvm::StringRef)’:
iwyu.cc:3661:32: error: ‘class clang::Preprocessor’ has no member named ‘addCommentHandler’

What version of the product are you using? On what operating system?
latest trunk as of this writing, compiling on SL/RHEL 6.1.x. clang/llvm compiles, installs,
and passes make check.



Reported by plaztiksyke on 2012-07-11 16:38:53

该提问来源于开源项目:include-what-you-use/include-what-you-use

  • 写回答

7条回答 默认 最新

  • weixin_39822993 2020-11-30 11:25
    关注
    
    looks like the method was renamed to 'AddCommentHandler'. changing the lowercase 'a'
    to uppercase fixes the compile issue and produces a working binary.
    

    Reported by plaztiksyke on 2012-07-11 16:43:13

    评论

报告相同问题?