llvm - Simple CPP file failed to compile with Clang -


#include "clang/ast/astconsumer.h"   #include "clang/ast/recursiveastvisitor.h"   #include "clang/basic/diagnostic.h"   #include "clang/frontend/compilerinstance.h"   #include "clang/basic/filemanager.h"   #include "clang/basic/sourcemanager.h"    #include "clang/basic/targetoptions.h"   #include "clang/basic/targetinfo.h"   #include "clang/frontend/compilerinstance.h"   #include "clang/lex/preprocessor.h"   #include "clang/parse/parseast.h"   #include "clang/rewrite/rewriter.h"   #include "clang/rewrite/rewriters.h"   #include "llvm/support/host.h"    int main()   {       return 0;   }   

i compiling

clang++ -i/home/pc/llvm-3.3.src/tools/clang/include -i/home/pc/llvm-3.3-build/tools/clang/include -i/usr/local/include  -fpic -fvisibility-inlines-hidden -wall -w -wno-unused-parameter -wwrite-strings -wno-missing-field-initializers -pedantic -wno-long-long -wno-uninitialized -wnon-virtual-dtor   -d_gnu_source -d__stdc_constant_macros -d__stdc_format_macros -d__stdc_limit_macros -fno-rtti   -c -o simple.o simple.cpp 

i getting error 'clang/rewrite/rewriter.h' file not found

about year ago (before release of llvm 3.2), clangrewrite split 2 libraries: clangrewritecore , clangrewritefrontend.

this means that:

  • clang/rewrite/rewriter.h clang/rewrite/core/rewriter.h.
  • clang/rewrite/rewriters.h clang/rewrite/frontend/rewriters.h.
  • libclangrewrite.a libclangrewritecore.a , libclangrewritefrontend.a.

you can see change in llvm repository here.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

IIS->Tomcat Redirect: multiple worker with default -