Changed default config file name to .clang-uml
This commit is contained in:
@@ -1,39 +0,0 @@
|
||||
compilation_database_dir: build
|
||||
output_directory: puml
|
||||
diagrams:
|
||||
myproject_class:
|
||||
type: class
|
||||
glob:
|
||||
- src/**.h
|
||||
- src/**.cc
|
||||
using_namespace:
|
||||
- myproject
|
||||
include:
|
||||
namespaces:
|
||||
- myproject
|
||||
exclude:
|
||||
namespaces:
|
||||
- myproject::detail
|
||||
plantuml:
|
||||
after:
|
||||
- 'note left of @A(MyProjectMain) : Main class of myproject library.'
|
||||
main_sequence_diagram:
|
||||
type: sequence
|
||||
glob:
|
||||
- src/main.cc
|
||||
using_namespace:
|
||||
- ""
|
||||
start_from:
|
||||
- usr: "c:@F@main#I#**1C#"
|
||||
include:
|
||||
namespaces:
|
||||
- clanguml
|
||||
exclude:
|
||||
namespaces:
|
||||
- std
|
||||
- CLI
|
||||
plantuml:
|
||||
before:
|
||||
- "' main test sequence diagram"
|
||||
after:
|
||||
- "' end"
|
||||
@@ -59,7 +59,7 @@ Nowadays, this file can be generated rather easily using multiple methods:
|
||||
* For Boost-based projects try [commands_to_compilation_database](https://github.com/tee3/commands_to_compilation_database)
|
||||
|
||||
### Invocation
|
||||
By default, `config-uml` will assume that the configuration file `.clanguml`
|
||||
By default, `config-uml` will assume that the configuration file `.clang-uml`
|
||||
and compilation database `compile_commands.json` files are in the
|
||||
current directory, so if they are in the top level directory of a project,
|
||||
simply run:
|
||||
@@ -68,7 +68,7 @@ clang-uml
|
||||
```
|
||||
|
||||
The output path for diagrams, as well as alternative location of
|
||||
compilation database can be specified in `.clanguml` configuration file.
|
||||
compilation database can be specified in `.clang-uml` configuration file.
|
||||
|
||||
For other options checkout help:
|
||||
```bash
|
||||
|
||||
@@ -50,7 +50,7 @@ int main(int argc, const char *argv[])
|
||||
{
|
||||
CLI::App app{"Clang-based PlantUML generator from C++ sources"};
|
||||
|
||||
std::string config_path{".clanguml"};
|
||||
std::string config_path{".clang-uml"};
|
||||
std::string compilation_database_dir{'.'};
|
||||
std::vector<std::string> diagram_names{};
|
||||
bool verbose{false};
|
||||
|
||||
@@ -5,7 +5,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
|
||||
file(GLOB_RECURSE TEST_CASE_SOURCES t*/*.cc)
|
||||
file(GLOB_RECURSE TEST_CASE_CONFIGS t*/.clanguml)
|
||||
file(GLOB_RECURSE TEST_CASE_CONFIGS t*/.clang-uml)
|
||||
|
||||
set(CLANG_UML_TEST_UTIL_SRC
|
||||
test_util.cc
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
compilation_database_dir: ..
|
||||
output_directory: puml
|
||||
diagrams:
|
||||
t00002_class:
|
||||
type: class
|
||||
glob:
|
||||
- ../../tests/t00002/t00002.cc
|
||||
using_namespace:
|
||||
- clanguml::t00002
|
||||
include:
|
||||
namespaces:
|
||||
- clanguml::t00002
|
||||
plantuml:
|
||||
after:
|
||||
- 'note left of @A(A) : Base abstract interface.'
|
||||
@@ -1,12 +0,0 @@
|
||||
compilation_database_dir: ..
|
||||
output_directory: puml
|
||||
diagrams:
|
||||
t00003_class:
|
||||
type: class
|
||||
glob:
|
||||
- ../../tests/t00003/t00003.cc
|
||||
using_namespace:
|
||||
- clanguml::t00003
|
||||
include:
|
||||
namespaces:
|
||||
- clanguml::t00003
|
||||
@@ -1,14 +0,0 @@
|
||||
compilation_database_dir: ..
|
||||
output_directory: puml
|
||||
diagrams:
|
||||
t00004_class:
|
||||
type: class
|
||||
glob:
|
||||
- ../../tests/t00004/t00004.cc
|
||||
using_namespace:
|
||||
- clanguml::t00004
|
||||
- clanguml::t00004::A
|
||||
- clanguml::t00004::A::AA
|
||||
include:
|
||||
namespaces:
|
||||
- clanguml::t00004
|
||||
@@ -1,12 +0,0 @@
|
||||
compilation_database_dir: ..
|
||||
output_directory: puml
|
||||
diagrams:
|
||||
t00005_class:
|
||||
type: class
|
||||
glob:
|
||||
- ../../tests/t00005/t00005.cc
|
||||
using_namespace:
|
||||
- clanguml::t00005
|
||||
include:
|
||||
namespaces:
|
||||
- clanguml::t00005
|
||||
@@ -1,12 +0,0 @@
|
||||
compilation_database_dir: ..
|
||||
output_directory: puml
|
||||
diagrams:
|
||||
t00006_class:
|
||||
type: class
|
||||
glob:
|
||||
- ../../tests/t00006/t00006.cc
|
||||
using_namespace:
|
||||
- clanguml::t00006
|
||||
include:
|
||||
namespaces:
|
||||
- clanguml::t00006
|
||||
@@ -1,12 +0,0 @@
|
||||
compilation_database_dir: ..
|
||||
output_directory: puml
|
||||
diagrams:
|
||||
t00007_class:
|
||||
type: class
|
||||
glob:
|
||||
- ../../tests/t00007/t00007.cc
|
||||
using_namespace:
|
||||
- clanguml::t00007
|
||||
include:
|
||||
namespaces:
|
||||
- clanguml::t00007
|
||||
@@ -1,12 +0,0 @@
|
||||
compilation_database_dir: ..
|
||||
output_directory: puml
|
||||
diagrams:
|
||||
t00008_class:
|
||||
type: class
|
||||
glob:
|
||||
- ../../tests/t00008/t00008.cc
|
||||
using_namespace:
|
||||
- clanguml::t00008
|
||||
include:
|
||||
namespaces:
|
||||
- clanguml::t00008
|
||||
@@ -1,12 +0,0 @@
|
||||
compilation_database_dir: ..
|
||||
output_directory: puml
|
||||
diagrams:
|
||||
t00009_class:
|
||||
type: class
|
||||
glob:
|
||||
- ../../tests/t00009/t00009.cc
|
||||
using_namespace:
|
||||
- clanguml::t00009
|
||||
include:
|
||||
namespaces:
|
||||
- clanguml::t00009
|
||||
@@ -1,12 +0,0 @@
|
||||
compilation_database_dir: ..
|
||||
output_directory: puml
|
||||
diagrams:
|
||||
t00010_class:
|
||||
type: class
|
||||
glob:
|
||||
- ../../tests/t00010/t00010.cc
|
||||
using_namespace:
|
||||
- clanguml::t00010
|
||||
include:
|
||||
namespaces:
|
||||
- clanguml::t00010
|
||||
@@ -1,12 +0,0 @@
|
||||
compilation_database_dir: ..
|
||||
output_directory: puml
|
||||
diagrams:
|
||||
t00011_class:
|
||||
type: class
|
||||
glob:
|
||||
- ../../tests/t00011/t00011.cc
|
||||
using_namespace:
|
||||
- clanguml::t00011
|
||||
include:
|
||||
namespaces:
|
||||
- clanguml::t00011
|
||||
@@ -1,15 +0,0 @@
|
||||
compilation_database_dir: ..
|
||||
output_directory: puml
|
||||
diagrams:
|
||||
t00012_class:
|
||||
type: class
|
||||
glob:
|
||||
- ../../tests/t00012/t00012.cc
|
||||
using_namespace:
|
||||
- clanguml::t00012
|
||||
include:
|
||||
namespaces:
|
||||
- clanguml::t00012
|
||||
plantuml:
|
||||
after:
|
||||
- 'note right of @A(C<std::map<int,std::vector<std::vector<std::vector<std::string>>>>,3,3,3>) : Long template annotation'
|
||||
@@ -1,13 +0,0 @@
|
||||
compilation_database_dir: ..
|
||||
output_directory: puml
|
||||
diagrams:
|
||||
t00013_class:
|
||||
type: class
|
||||
glob:
|
||||
- ../../tests/t00013/t00013.cc
|
||||
using_namespace:
|
||||
- clanguml::t00013
|
||||
include:
|
||||
namespaces:
|
||||
- clanguml::t00013
|
||||
- ABCD
|
||||
@@ -1,16 +0,0 @@
|
||||
compilation_database_dir: ..
|
||||
output_directory: puml
|
||||
diagrams:
|
||||
t00014_class:
|
||||
type: class
|
||||
glob:
|
||||
- ../../tests/t00014/t00014.cc
|
||||
using_namespace:
|
||||
- clanguml::t00014
|
||||
include:
|
||||
namespaces:
|
||||
- clanguml::t00014
|
||||
exclude:
|
||||
namespaces:
|
||||
- std
|
||||
- clanguml::t00014::std
|
||||
@@ -1,12 +0,0 @@
|
||||
compilation_database_dir: ..
|
||||
output_directory: puml
|
||||
diagrams:
|
||||
t00015_class:
|
||||
type: class
|
||||
glob:
|
||||
- ../../tests/t00015/t00015.cc
|
||||
using_namespace:
|
||||
- clanguml::t00015
|
||||
include:
|
||||
namespaces:
|
||||
- clanguml::t00015
|
||||
@@ -1,12 +0,0 @@
|
||||
compilation_database_dir: ..
|
||||
output_directory: puml
|
||||
diagrams:
|
||||
t00016_class:
|
||||
type: class
|
||||
glob:
|
||||
- ../../tests/t00016/t00016.cc
|
||||
using_namespace:
|
||||
- clanguml::t00016
|
||||
include:
|
||||
namespaces:
|
||||
- clanguml::t00016
|
||||
@@ -1,13 +0,0 @@
|
||||
compilation_database_dir: ..
|
||||
output_directory: puml
|
||||
diagrams:
|
||||
t00017_class:
|
||||
type: class
|
||||
include_relations_also_as_members: false
|
||||
glob:
|
||||
- ../../tests/t00017/t00017.cc
|
||||
using_namespace:
|
||||
- clanguml::t00017
|
||||
include:
|
||||
namespaces:
|
||||
- clanguml::t00017
|
||||
@@ -1,13 +0,0 @@
|
||||
compilation_database_dir: ..
|
||||
output_directory: puml
|
||||
diagrams:
|
||||
t00018_class:
|
||||
type: class
|
||||
glob:
|
||||
- ../../tests/t00018/**.h
|
||||
- ../../tests/t00018/**.cc
|
||||
using_namespace:
|
||||
- clanguml::t00018
|
||||
include:
|
||||
namespaces:
|
||||
- clanguml::t00018
|
||||
@@ -1,18 +0,0 @@
|
||||
compilation_database_dir: ..
|
||||
output_directory: puml
|
||||
diagrams:
|
||||
t00019_class:
|
||||
type: class
|
||||
glob:
|
||||
- ../../tests/t00019/**.h
|
||||
- ../../tests/t00019/**.cc
|
||||
using_namespace:
|
||||
- clanguml::t00019
|
||||
include:
|
||||
namespaces:
|
||||
- clanguml::t00019
|
||||
plantuml:
|
||||
after:
|
||||
- '@A(Base) <|-- @A(Layer3<LowerLayer>)'
|
||||
- '@A(Layer3<LowerLayer>) <|-- @A(Layer2<LowerLayer>)'
|
||||
- '@A(Layer2<LowerLayer>) <|-- @A(Layer1<LowerLayer>)'
|
||||
@@ -1,18 +0,0 @@
|
||||
compilation_database_dir: ..
|
||||
output_directory: puml
|
||||
diagrams:
|
||||
t00020_class:
|
||||
type: class
|
||||
glob:
|
||||
- ../../tests/t00020/t00020.cc
|
||||
using_namespace:
|
||||
- clanguml::t00020
|
||||
include:
|
||||
namespaces:
|
||||
- clanguml::t00020
|
||||
plantuml:
|
||||
after:
|
||||
- '@A(ProductA1) <.. @A(Factory1)'
|
||||
- '@A(ProductB1) <.. @A(Factory1)'
|
||||
- '@A(ProductA2) <.. @A(Factory2)'
|
||||
- '@A(ProductB2) <.. @A(Factory2)'
|
||||
@@ -1,12 +0,0 @@
|
||||
compilation_database_dir: ..
|
||||
output_directory: puml
|
||||
diagrams:
|
||||
t00021_class:
|
||||
type: class
|
||||
glob:
|
||||
- ../../tests/t00021/t00021.cc
|
||||
using_namespace:
|
||||
- clanguml::t00021
|
||||
include:
|
||||
namespaces:
|
||||
- clanguml::t00021
|
||||
@@ -1,12 +0,0 @@
|
||||
compilation_database_dir: ..
|
||||
output_directory: puml
|
||||
diagrams:
|
||||
t00022_class:
|
||||
type: class
|
||||
glob:
|
||||
- ../../tests/t00022/t00022.cc
|
||||
using_namespace:
|
||||
- clanguml::t00022
|
||||
include:
|
||||
namespaces:
|
||||
- clanguml::t00022
|
||||
@@ -1,12 +0,0 @@
|
||||
compilation_database_dir: ..
|
||||
output_directory: puml
|
||||
diagrams:
|
||||
t00023_class:
|
||||
type: class
|
||||
glob:
|
||||
- ../../tests/t00023/t00023.cc
|
||||
using_namespace:
|
||||
- clanguml::t00023
|
||||
include:
|
||||
namespaces:
|
||||
- clanguml::t00023
|
||||
@@ -1,12 +0,0 @@
|
||||
compilation_database_dir: ..
|
||||
output_directory: puml
|
||||
diagrams:
|
||||
t00024_class:
|
||||
type: class
|
||||
glob:
|
||||
- ../../tests/t00024/t00024.cc
|
||||
using_namespace:
|
||||
- clanguml::t00024
|
||||
include:
|
||||
namespaces:
|
||||
- clanguml::t00024
|
||||
@@ -1,12 +0,0 @@
|
||||
compilation_database_dir: ..
|
||||
output_directory: puml
|
||||
diagrams:
|
||||
t00025_class:
|
||||
type: class
|
||||
glob:
|
||||
- ../../tests/t00025/t00025.cc
|
||||
using_namespace:
|
||||
- clanguml::t00025
|
||||
include:
|
||||
namespaces:
|
||||
- clanguml::t00025
|
||||
@@ -1,12 +0,0 @@
|
||||
compilation_database_dir: ..
|
||||
output_directory: puml
|
||||
diagrams:
|
||||
t00026_class:
|
||||
type: class
|
||||
glob:
|
||||
- ../../tests/t00026/t00026.cc
|
||||
using_namespace:
|
||||
- clanguml::t00026
|
||||
include:
|
||||
namespaces:
|
||||
- clanguml::t00026
|
||||
@@ -1,12 +0,0 @@
|
||||
compilation_database_dir: ..
|
||||
output_directory: puml
|
||||
diagrams:
|
||||
t00027_class:
|
||||
type: class
|
||||
glob:
|
||||
- ../../tests/t00027/t00027.cc
|
||||
using_namespace:
|
||||
- clanguml::t00027
|
||||
include:
|
||||
namespaces:
|
||||
- clanguml::t00027
|
||||
@@ -1,22 +0,0 @@
|
||||
compilation_database_dir: ..
|
||||
output_directory: puml
|
||||
diagrams:
|
||||
t20001_sequence:
|
||||
type: sequence
|
||||
glob:
|
||||
- ../../tests/t20001/t20001.cc
|
||||
include:
|
||||
namespaces:
|
||||
- clanguml::t20001
|
||||
exclude:
|
||||
namespaces:
|
||||
- clanguml::t20001::detail
|
||||
using_namespace:
|
||||
- clanguml::t20001
|
||||
start_from:
|
||||
- usr: "c:@N@clanguml@N@t20001@F@tmain#"
|
||||
plantuml:
|
||||
before:
|
||||
- "' t20001 test sequence diagram"
|
||||
after:
|
||||
- 'note over "tmain()": Main test function'
|
||||
@@ -1,20 +0,0 @@
|
||||
compilation_database_dir: ..
|
||||
output_directory: puml
|
||||
diagrams:
|
||||
t90000_class:
|
||||
type: class
|
||||
plantuml:
|
||||
before:
|
||||
- 'class "Foo" as C_001'
|
||||
- 'class C_001 {'
|
||||
- ' +int value'
|
||||
- '}'
|
||||
- 'C_001 <|-- ArrayList'
|
||||
- 'note top of C_001: This is a very important class.'
|
||||
- 'note "This is a\nfloating note" as N1'
|
||||
- 'note "This note is connected\nto several objects." as N2'
|
||||
- 'C_001 .. N2'
|
||||
- 'N2 .. ArrayList'
|
||||
- 'class "Boo" as C_002'
|
||||
- 'class C_002 {'
|
||||
- '}'
|
||||
@@ -22,7 +22,7 @@
|
||||
std::pair<clanguml::config::config, cppast::libclang_compilation_database>
|
||||
load_config(const std::string &test_name)
|
||||
{
|
||||
auto config = clanguml::config::load(test_name + "/.clanguml");
|
||||
auto config = clanguml::config::load(test_name + "/.clang-uml");
|
||||
|
||||
cppast::libclang_compilation_database db(config.compilation_database_dir);
|
||||
|
||||
@@ -32,7 +32,7 @@ load_config(const std::string &test_name)
|
||||
std::pair<clanguml::config::config, compilation_database> load_config2(
|
||||
const std::string &test_name)
|
||||
{
|
||||
auto config = clanguml::config::load(test_name + "/.clanguml");
|
||||
auto config = clanguml::config::load(test_name + "/.clang-uml");
|
||||
|
||||
auto db = clanguml::cx::compilation_database::from_directory(
|
||||
config.compilation_database_dir);
|
||||
|
||||
Reference in New Issue
Block a user