Comments (9)
@hunterzju here is a test case and example for such situation (adjust your paths accordingly):
https://github.com/bkryza/clang-uml/blob/master/docs/test_cases/t00045.md
basically skip using_namespace
and include..namespaces
directives and exclude as much as you need from your dependencies (definitely exclude std
)
from clang-uml.
@hunterzju here is a test case and example for such situation (adjust your paths accordingly):
https://github.com/bkryza/clang-uml/blob/master/docs/test_cases/t00045.md
basically skip
using_namespace
andinclude..namespaces
directives and exclude as much as you need from your dependencies (definitely excludestd
)
I get Err with such config:
compilation_database_dir: ../build/
output_directory: ../docs/01Iterator
diagrams:
iterator_class:
type: class
glob:
- ./*.cpp
- ./*.hpp
- ./*.h
exclude:
namespace:
- std
there are some cpp files in the folder, I want to know if my conig has some error?
from clang-uml.
@hunterzju Where in the project structure is your .clang-uml
file? Can you paste here the output of:
find . -name "*.cpp"
find . -name "compile_commands.json"
find . -name ".clang-uml"
executed in your projects root directory, or at least some part of the output...
from clang-uml.
@hunterzju Where in the project structure is your
.clang-uml
file? Can you paste here the output of:find . -name "*.cpp" find . -name "compile_commands.json" find . -name ".clang-uml"executed in your projects root directory, or at least some part of the output...
// tree ./ -la
├── Aggregate.h
├── Book.h
├── BookSelf.cpp
├── BookSelf.h
├── BookSelfIterator.cpp
├── BookSelfIterator.h
├── .clang-uml
├── CMakeLists.txt
├── .gdb_history
├── Iterator.h
├── main.cpp
└── ReadMe.md
and the "compile_commands.json" is in ../build/compile_commands.json
my system is manjaro linux.
from clang-uml.
I run clang-uml with gdb and the error comes in
when I run next here, the error info printed:
from clang-uml.
It seems to get error in src/util/util.cc: line 54
:
from clang-uml.
@hunterzju Thanks for debugging!
There are 2 possible reasons I can see:
- out of source build (build directory outside of the root directory)
- some problem with git:
- do you have git installed?
- does your project root contains
.git
directory?
Obviously git shouldn't be a requirement :-)
I'll try to reproduce it later, I'm not sure I've checked with out-of-source builds, but if you want to use all translation units anyway, you can simply skip the glob
directive, in which case it should just take all translation units from the compilation_commands.json
:
compilation_database_dir: ../build/
output_directory: ../docs/01Iterator
diagrams:
iterator_class:
type: class
exclude:
namespace:
- std
If this doesn't help, could you reconfigure cmake to move the build directory inside of your projects' root dir and try again?
from clang-uml.
@hunterzju I've reproduced the problem, I'll try to fix it as your original config should work, but the following configuration should work for you:
compilation_database_dir: ../build/
output_directory: ../docs/01Iterator
diagrams:
iterator_class:
type: class
glob:
- "*.cpp"
exclude:
namespaces:
- std
from clang-uml.
Thank a lot, this works for me.
from clang-uml.
Related Issues (20)
- Refactor sequence diagram template specialization rendering using template_builder
- Any way to use absolute paths for glob? HOT 2
- Cannot run it from command line inspite of config file HOT 5
- clang-uml terminates with error HOT 7
- troubles using bazel HOT 2
- Improve template and concept rendering in PlantUML
- Add option to override arrow for specific relationships in PlantUML and MermaidJS
- Improve Doxygen docs
- Fix progress indicators when a source is repeated in a compile_commands.json
- Need a special version of clang to build or any other wrong? HOT 2
- Unable to set `query_driver` in `.clang-uml` HOT 1
- Error on build: ignoring attributes on template argument HOT 6
- Treat empty diagrams as errors
- Fix elements filter in sequence diagrams
- clang-uml cannot find libary files HOT 1
- Test clang-uml with latest 18.1.0 release HOT 1
- Class diagram contains empty packages
- Windows Defender Marks 0.5.1 exe Release as Virus HOT 5
- Library Unable to Find yaml-cpp Correctly on Windows (MSVC) HOT 2
- Build Fails with LLVM 18.x HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clang-uml.