Git Product home page Git Product logo

cxxcodebrowser's People

Contributors

abigagli avatar adhokshajmishra avatar adytzu2007 avatar lluchs avatar rprichard avatar samogot avatar schroedi avatar sergei-dyshel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cxxcodebrowser's Issues

README needs Update

Great project! Love it!

I think there is now a documentation bug in the README after supporting Clang 4.0. For Debian based systems you need:

sudo apt-get install make g++ libqt4-dev zlib1g-dev libncurses5-dev libclang-4.0-dev llvm-4.0-dev

Clang 3.8 is now obsolete.

[Feature Request] Tag list side panel

Sourceweb is a great source indexer and navigator .
A side panel similar to the file browser panel that shows the tags of the current source file would comes very handy also, cheers.

fatal error: 'bits/c++config.h' file not found

On the first step, I get the following error:

ajs4@ajs4ld:~/Packages/SourceWeb/sourceweb$ ./configure --with-clang-dir=/home/ajs4/Packages/SourceWeb/sourceweb-clang
Looking for qmake...
- which qmake-qt4
- found /usr/bin/qmake-qt4
Testing C++11 support using /usr/bin/qmake-qt4...
- running: /home/ajs4/Packages/SourceWeb/sourceweb/cxx11-compat-test/run-test.sh /usr/bin/qmake-qt4 QMAKE_CC=/home/ajs4/Packages/SourceWeb/sourceweb-clang/bin/clang QMAKE_CXX=/home/ajs4/Packages/SourceWeb/sourceweb-clang/bin/clang++ QMAKE_LINK=/home/ajs4/Packages/SourceWeb/sourceweb-clang/bin/clang++
- Command failed.  Output of /home/ajs4/Packages/SourceWeb/sourceweb/cxx11-compat-test.log:
    + mkdir cxx11-compat-test-build
    + cd cxx11-compat-test-build
    + /usr/bin/qmake-qt4 QMAKE_CC=/home/ajs4/Packages/SourceWeb/sourceweb-clang/bin/clang QMAKE_CXX=/home/ajs4/Packages/SourceWeb/sourceweb-clang/bin/clang++ QMAKE_LINK=/home/ajs4/Packages/SourceWeb/sourceweb-clang/bin/clang++ /home/ajs4/Packages/SourceWeb/sourceweb/cxx11-compat-test/cxx11-compat-test.pro
    + make
    /home/ajs4/Packages/SourceWeb/sourceweb-clang/bin/clang++ -c -m64 -pipe -std=c++0x -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -I/usr/share/qt4/mkspecs/linux-g++-64 -I../cxx11-compat-test -I/usr/include/qt4 -I. -I../cxx11-compat-test -I. -o main.o ../cxx11-compat-test/main.cc
    In file included from ../cxx11-compat-test/main.cc:11:
    In file included from /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/algorithm:60:
    /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/utility:69:10: fatal error: 'bits/c++config.h' file not found
    #include <bits/c++config.h>
    ^
    1 error generated.
    make: *** [main.o] Error 1

Static libraries necessary?

Hi, I am a Gentoo linux user and when trying the sourceweb on its last version compatible with clang 3.7 (last version of clang marked as estable in Gentoo), I run into the failed requirement for the static libraries from Clang (check-clang.pri CLANG_LIBS check). Not understanding how compiling and installing Clang from source could not have installed all files necessary to develop tools based on it, I commented this check and, to my surprise, compiled, installed and run sourceweb without problems.

Is this dependency to the CLANG static libraries really necessary?

sourceweb failing to build on OS X 10.8.5 (w/ Qt 5.1.1)

Grabbed the prerequisite as described in the README, tried building after installing Qt 5.1.1, received the following errors while building:

In file included from ASTIndexer.cc:1:
In file included from ./ASTIndexer.h:6:
In file included from ../../../clang-3.2-1-x86_64-darwin/include/clang/AST/RecursiveASTVisitor.h:17:
In file included from ../../../clang-3.2-1-x86_64-darwin/include/clang/AST/Decl.h:17:
In file included from ../../../clang-3.2-1-x86_64-darwin/include/clang/AST/APValue.h:18:
In file included from ../../../clang-3.2-1-x86_64-darwin/include/llvm/ADT/APSInt.h:18:
In file included from ../../../clang-3.2-1-x86_64-darwin/include/llvm/ADT/APInt.h:18:
In file included from ../../../clang-3.2-1-x86_64-darwin/include/llvm/ADT/ArrayRef.h:13:
In file included from ../../../clang-3.2-1-x86_64-darwin/include/llvm/ADT/SmallVector.h:17:
../../../clang-3.2-1-x86_64-darwin/include/llvm/Support/AlignOf.h:90:1: error: 'alignas' attribute cannot be applied to types
LLVM_ALIGNEDCHARARRAY_TEMPLATE_ALIGNMENT(1);
^
../../../clang-3.2-1-x86_64-darwin/include/llvm/Support/AlignOf.h:79:10: note: expanded from macro 'LLVM_ALIGNEDCHARARRAY_TEMPLATE_ALIGNMENT'
    char alignas(x) aligned; \
         ^
../../../clang-3.2-1-x86_64-darwin/include/llvm/Support/AlignOf.h:91:1: error: 'alignas' attribute cannot be applied to types
LLVM_ALIGNEDCHARARRAY_TEMPLATE_ALIGNMENT(2);
^
../../../clang-3.2-1-x86_64-darwin/include/llvm/Support/AlignOf.h:79:10: note: expanded from macro 'LLVM_ALIGNEDCHARARRAY_TEMPLATE_ALIGNMENT'
    char alignas(x) aligned; \
         ^
../../../clang-3.2-1-x86_64-darwin/include/llvm/Support/AlignOf.h:92:1: error: 'alignas' attribute cannot be applied to types
LLVM_ALIGNEDCHARARRAY_TEMPLATE_ALIGNMENT(4);
^
../../../clang-3.2-1-x86_64-darwin/include/llvm/Support/AlignOf.h:79:10: note: expanded from macro 'LLVM_ALIGNEDCHARARRAY_TEMPLATE_ALIGNMENT'
    char alignas(x) aligned; \
         ^
../../../clang-3.2-1-x86_64-darwin/include/llvm/Support/AlignOf.h:93:1: error: 'alignas' attribute cannot be applied to types

...

../../../clang-3.2-1-x86_64-darwin/include/llvm/Support/AlignOf.h:101:1: error: 'alignas' attribute cannot be applied to types
LLVM_ALIGNEDCHARARRAY_TEMPLATE_ALIGNMENT(4096);
^
../../../clang-3.2-1-x86_64-darwin/include/llvm/Support/AlignOf.h:79:10: note: expanded from macro 'LLVM_ALIGNEDCHARARRAY_TEMPLATE_ALIGNMENT'
    char alignas(x) aligned; \
         ^
../../../clang-3.2-1-x86_64-darwin/include/llvm/Support/AlignOf.h:102:1: error: 'alignas' attribute cannot be applied to types
LLVM_ALIGNEDCHARARRAY_TEMPLATE_ALIGNMENT(8192);
^
../../../clang-3.2-1-x86_64-darwin/include/llvm/Support/AlignOf.h:79:10: note: expanded from macro 'LLVM_ALIGNEDCHARARRAY_TEMPLATE_ALIGNMENT'
    char alignas(x) aligned; \
         ^
13 errors generated.
make[1]: *** [ASTIndexer.o] Error 1
make: *** [sub-clang-indexer-make_first-ordered] Error 2

Empty compile_commands.json

Hi,

I have built an only

btrace

library and tried testing it with some project. What happens is btrace.log file is generated but when I try to create compile_commands.json with command sw-btrace-to-compiledb an empty compile_commands.json file is created. Am I missing something?
PFA btrace.log file

btrace.zip

<< llvm::StringRef » in « const char*

when i compiled with 'sudo make install' (archlinux 64 bits), i had this issue :
../../clang-indexer/IndexerContext.cc: Dans la fonction membre « indexer::IndexerFileContext& indexer::IndexerContext::fileContext(clang::FileID) »:
../../clang-indexer/IndexerContext.cc:162:61: error: ne peut convertir « llvm::StringRef » en « const char* » pour l'argument « 1 » de « char* indexer::portableRealPath(const char*) »
char *filename = portableRealPath(pFE->getName());
an idea ?
thanks

Can't find libclangTooling.a

This occurs on arch linux with clang and llvm packages installed.

/usr/lib/libclangTooling.so does exist on my machine.

sourceweb failing to build on OS X 10.9 (w/ Qt 4.8.6)

clang++ -c -pipe -std=c++11 -stdlib=libc++ -Wno-reserved-user-defined-literal -fPIC -pthread -fvisibility-inlines-hidden -fno-rtti -fno-exceptions -g -gdwarf-2 -arch x86_64 -Wall -W -Wno-unused-parameter -Wno-uninitialized -Wno-unused-parameter -Wno-strict-aliasing -DJSON_IS_AMALGAMATION -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DINDEXER_CLANG_DIR=/Users/lichuang/source/clang+llvm-3.4.1-x86_64-apple-darwin10.9 -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.8/mkspecs/unsupported/macx-clang -I. -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/usr/include -I../libindexdb -I../third_party/libjsoncpp -I../../clang+llvm-3.4.1-x86_64-apple-darwin10.9/include -I. -F/Library/Frameworks -o ASTIndexer.o ASTIndexer.cc
ASTIndexer.cc:272:12: error: no member named 'getParenRange' in 'clang::CXXConstructExpr'
if (e->getParenRange().isValid()) {
~ ^
ASTIndexer.cc:291:24: error: no member named 'getParenRange' in 'clang::CXXConstructExpr'
e->getParenRange().getEnd(),
~ ^
In file included from ASTIndexer.cc:1:
In file included from ./ASTIndexer.h:6:
In file included from ../../clang+llvm-3.4.1-x86_64-apple-darwin10.9/include/clang/AST/RecursiveASTVisitor.h:17:
In file included from ../../clang+llvm-3.4.1-x86_64-apple-darwin10.9/include/clang/AST/Decl.h:17:
In file included from ../../clang+llvm-3.4.1-x86_64-apple-darwin10.9/include/clang/AST/APValue.h:17:
In file included from ../../clang+llvm-3.4.1-x86_64-apple-darwin10.9/include/clang/Basic/LLVM.h:22:
../../clang+llvm-3.4.1-x86_64-apple-darwin10.9/include/llvm/Support/Casting.h:55:16: error: no member named 'classof' in 'clang::TagTypeLoc'
return To::classof(&Val);
~~~~^
../../clang+llvm-3.4.1-x86_64-apple-darwin10.9/include/llvm/Support/Casting.h:77:32: note: in instantiation of member function 'llvm::isa_impl<clang::TagTypeLoc, clang::TypeLoc,
void>::doit' requested here
return isa_impl<To, From>::doit(Val);
^
../../clang+llvm-3.4.1-x86_64-apple-darwin10.9/include/llvm/Support/Casting.h:124:36: note: in instantiation of member function 'llvm::isa_impl_cl<clang::TagTypeLoc, const
clang::TypeLoc>::doit' requested here
return isa_impl_cl<To,FromTy>::doit(Val);
^
../../clang+llvm-3.4.1-x86_64-apple-darwin10.9/include/llvm/Support/Casting.h:136:70: note: in instantiation of member function 'llvm::isa_impl_wrap<clang::TagTypeLoc, const
clang::TypeLoc, const clang::TypeLoc>::doit' requested here
typename simplify_type::SimpleType>::doit(Val);
^
ASTIndexer.cc:584:15: note: in instantiation of function template specialization 'llvm::isa<clang::TagTypeLoc, clang::TypeLoc>' requested here
if (llvm::isaclang::TagTypeLoc(tl)) {
^
In file included from ASTIndexer.cc:1:
In file included from ./ASTIndexer.h:6:
In file included from ../../clang+llvm-3.4.1-x86_64-apple-darwin10.9/include/clang/AST/RecursiveASTVisitor.h:17:
In file included from ../../clang+llvm-3.4.1-x86_64-apple-darwin10.9/include/clang/AST/Decl.h:17:
In file included from ../../clang+llvm-3.4.1-x86_64-apple-darwin10.9/include/clang/AST/APValue.h:17:
In file included from ../../clang+llvm-3.4.1-x86_64-apple-darwin10.9/include/clang/Basic/LLVM.h:22:
../../clang+llvm-3.4.1-x86_64-apple-darwin10.9/include/llvm/Support/Casting.h:55:16: error: no member named 'classof' in 'clang::TypedefTypeLoc'
return To::classof(&Val);
~~~~^
../../clang+llvm-3.4.1-x86_64-apple-darwin10.9/include/llvm/Support/Casting.h:77:32: note: in instantiation of member function 'llvm::isa_impl<clang::TypedefTypeLoc, clang::TypeLoc,
void>::doit' requested here
return isa_impl<To, From>::doit(Val);
^
../../clang+llvm-3.4.1-x86_64-apple-darwin10.9/include/llvm/Support/Casting.h:124:36: note: in instantiation of member function 'llvm::isa_impl_cl<clang::TypedefTypeLoc, const
clang::TypeLoc>::doit' requested here
return isa_impl_cl<To,FromTy>::doit(Val);
^
../../clang+llvm-3.4.1-x86_64-apple-darwin10.9/include/llvm/Support/Casting.h:136:70: note: in instantiation of member function 'llvm::isa_impl_wrap<clang::TypedefTypeLoc, const
clang::TypeLoc, const clang::TypeLoc>::doit' requested here
typename simplify_type::SimpleType>::doit(Val);
^
ASTIndexer.cc:589:22: note: in instantiation of function template specialization 'llvm::isa<clang::TypedefTypeLoc, clang::TypeLoc>' requested here
} else if (llvm::isaclang::TypedefTypeLoc(tl)) {
^
In file included from ASTIndexer.cc:1:
In file included from ./ASTIndexer.h:6:
In file included from ../../clang+llvm-3.4.1-x86_64-apple-darwin10.9/include/clang/AST/RecursiveASTVisitor.h:17:
In file included from ../../clang+llvm-3.4.1-x86_64-apple-darwin10.9/include/clang/AST/Decl.h:17:
In file included from ../../clang+llvm-3.4.1-x86_64-apple-darwin10.9/include/clang/AST/APValue.h:17:
In file included from ../../clang+llvm-3.4.1-x86_64-apple-darwin10.9/include/clang/Basic/LLVM.h:22:
../../clang+llvm-3.4.1-x86_64-apple-darwin10.9/include/llvm/Support/Casting.h:55:16: error: no member named 'classof' in 'clang::TemplateTypeParmTypeLoc'
return To::classof(&Val);
~~~~^
../../clang+llvm-3.4.1-x86_64-apple-darwin10.9/include/llvm/Support/Casting.h:77:32: note: in instantiation of member function 'llvm::isa_impl<clang::TemplateTypeParmTypeLoc,
clang::TypeLoc, void>::doit' requested here
return isa_impl<To, From>::doit(Val);
^
../../clang+llvm-3.4.1-x86_64-apple-darwin10.9/include/llvm/Support/Casting.h:124:36: note: in instantiation of member function 'llvm::isa_impl_cl<clang::TemplateTypeParmTypeLoc, const
clang::TypeLoc>::doit' requested here
return isa_impl_cl<To,FromTy>::doit(Val);
^
../../clang+llvm-3.4.1-x86_64-apple-darwin10.9/include/llvm/Support/Casting.h:136:70: note: in instantiation of member function 'llvm::isa_impl_wrap<clang::TemplateTypeParmTypeLoc, const
clang::TypeLoc, const clang::TypeLoc>::doit' requested here
typename simplify_type::SimpleType>::doit(Val);
^
ASTIndexer.cc:594:22: note: in instantiation of function template specialization 'llvm::isa<clang::TemplateTypeParmTypeLoc, clang::TypeLoc>' requested here
} else if (llvm::isaclang::TemplateTypeParmTypeLoc(tl)) {
^
In file included from ASTIndexer.cc:1:
In file included from ./ASTIndexer.h:6:
In file included from ../../clang+llvm-3.4.1-x86_64-apple-darwin10.9/include/clang/AST/RecursiveASTVisitor.h:17:
In file included from ../../clang+llvm-3.4.1-x86_64-apple-darwin10.9/include/clang/AST/Decl.h:17:
In file included from ../../clang+llvm-3.4.1-x86_64-apple-darwin10.9/include/clang/AST/APValue.h:17:
In file included from ../../clang+llvm-3.4.1-x86_64-apple-darwin10.9/include/clang/Basic/LLVM.h:22:
../../clang+llvm-3.4.1-x86_64-apple-darwin10.9/include/llvm/Support/Casting.h:55:16: error: no member named 'classof' in 'clang::TemplateSpecializationTypeLoc'
return To::classof(&Val);
~~~~^
../../clang+llvm-3.4.1-x86_64-apple-darwin10.9/include/llvm/Support/Casting.h:77:32: note: in instantiation of member function 'llvm::isa_impl<clang::TemplateSpecializationTypeLoc,
clang::TypeLoc, void>::doit' requested here
return isa_impl<To, From>::doit(Val);
^
../../clang+llvm-3.4.1-x86_64-apple-darwin10.9/include/llvm/Support/Casting.h:124:36: note: in instantiation of member function 'llvm::isa_impl_cl<clang::TemplateSpecializationTypeLoc,
const clang::TypeLoc>::doit' requested here
return isa_impl_cl<To,FromTy>::doit(Val);
^
../../clang+llvm-3.4.1-x86_64-apple-darwin10.9/include/llvm/Support/Casting.h:136:70: note: in instantiation of member function 'llvm::isa_impl_wrap<clang::TemplateSpecializationTypeLoc,
const clang::TypeLoc, const clang::TypeLoc>::doit' requested here
typename simplify_type::SimpleType>::doit(Val);
^
ASTIndexer.cc:599:22: note: in instantiation of function template specialization 'llvm::isa<clang::TemplateSpecializationTypeLoc, clang::TypeLoc>' requested here
} else if (llvm::isaclang::TemplateSpecializationTypeLoc(tl)) {
^
6 errors generated.
make[1]: *** [ASTIndexer.o] Error 1

lichuangdeMac-mini:sourceweb lichuang$ clang++ --version
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.2.0
Thread model: posix

clang lib version:
./configure --with-clang-dir=/Users/lichuang/source/clang+llvm-3.4.1-x86_64-apple-darwin10.9

windows build

Is it possible to build at least clang-indexer and index-tool on windows? I have large windows-only project and I'm looking for a way to get symbols index to make my own queries for code analyzing.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.