[cfe-commits] TOT diff return override build error

Garrison Venn gvenn.cfe.dev at gmail.com
Sat Nov 19 10:27:15 PST 2011


llvm[4]: Compiling PrintFunctionNames.cpp for Release+Asserts build (PIC)
<root dir>/llvm/tools/clang/examples/PrintFunctionNames/PrintFunctionNames.cpp:26:16: error: virt\
ual function 'HandleTopLevelDecl' has a different return type ('void') than the\
 function it overrides (which has return type 'bool')
  virtual void HandleTopLevelDecl(DeclGroupRef DG) {
               ^
<root dir>/llvm/tools/clang/examples/PrintFunctionNames/../../include/clang/AST/ASTConsumer.h:53:\
16: note: overridden virtual function is here
  virtual bool HandleTopLevelDecl(DeclGroupRef D);
               ^
1 error generated.
make[4]: *** [<obj root dir>/llvm/tools/clang/examples/PrintFunctionNames/Release+Asserts/PrintFunctionNames.o] Error 1
make[3]: *** [PrintFunctionNames/.makeall] Error 2
make[2]: *** [examples/.makeall] Error 2
make[1]: *** [clang/.makeall] Error 2
make: *** [all] Error 1





More information about the cfe-commits mailing list