diff --git a/.clang-uml.example b/.clang-uml.example new file mode 100644 index 00000000..b77bdd97 --- /dev/null +++ b/.clang-uml.example @@ -0,0 +1,39 @@ +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" diff --git a/tests/t00002/.clang-uml b/tests/t00002/.clang-uml new file mode 100644 index 00000000..7e8d802a --- /dev/null +++ b/tests/t00002/.clang-uml @@ -0,0 +1,15 @@ +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.' diff --git a/tests/t00003/.clang-uml b/tests/t00003/.clang-uml new file mode 100644 index 00000000..b543b19e --- /dev/null +++ b/tests/t00003/.clang-uml @@ -0,0 +1,12 @@ +compilation_database_dir: .. +output_directory: puml +diagrams: + t00003_class: + type: class + glob: + - ../../tests/t00003/t00003.cc + using_namespace: + - clanguml::t00003 + include: + namespaces: + - clanguml::t00003 diff --git a/tests/t00004/.clang-uml b/tests/t00004/.clang-uml new file mode 100644 index 00000000..d9231e66 --- /dev/null +++ b/tests/t00004/.clang-uml @@ -0,0 +1,14 @@ +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 diff --git a/tests/t00005/.clang-uml b/tests/t00005/.clang-uml new file mode 100644 index 00000000..d433a5d5 --- /dev/null +++ b/tests/t00005/.clang-uml @@ -0,0 +1,12 @@ +compilation_database_dir: .. +output_directory: puml +diagrams: + t00005_class: + type: class + glob: + - ../../tests/t00005/t00005.cc + using_namespace: + - clanguml::t00005 + include: + namespaces: + - clanguml::t00005 diff --git a/tests/t00006/.clang-uml b/tests/t00006/.clang-uml new file mode 100644 index 00000000..9b44b117 --- /dev/null +++ b/tests/t00006/.clang-uml @@ -0,0 +1,12 @@ +compilation_database_dir: .. +output_directory: puml +diagrams: + t00006_class: + type: class + glob: + - ../../tests/t00006/t00006.cc + using_namespace: + - clanguml::t00006 + include: + namespaces: + - clanguml::t00006 diff --git a/tests/t00007/.clang-uml b/tests/t00007/.clang-uml new file mode 100644 index 00000000..6bd80b76 --- /dev/null +++ b/tests/t00007/.clang-uml @@ -0,0 +1,12 @@ +compilation_database_dir: .. +output_directory: puml +diagrams: + t00007_class: + type: class + glob: + - ../../tests/t00007/t00007.cc + using_namespace: + - clanguml::t00007 + include: + namespaces: + - clanguml::t00007 diff --git a/tests/t00008/.clang-uml b/tests/t00008/.clang-uml new file mode 100644 index 00000000..07c18890 --- /dev/null +++ b/tests/t00008/.clang-uml @@ -0,0 +1,12 @@ +compilation_database_dir: .. +output_directory: puml +diagrams: + t00008_class: + type: class + glob: + - ../../tests/t00008/t00008.cc + using_namespace: + - clanguml::t00008 + include: + namespaces: + - clanguml::t00008 diff --git a/tests/t00009/.clang-uml b/tests/t00009/.clang-uml new file mode 100644 index 00000000..fd2b5b38 --- /dev/null +++ b/tests/t00009/.clang-uml @@ -0,0 +1,12 @@ +compilation_database_dir: .. +output_directory: puml +diagrams: + t00009_class: + type: class + glob: + - ../../tests/t00009/t00009.cc + using_namespace: + - clanguml::t00009 + include: + namespaces: + - clanguml::t00009 diff --git a/tests/t00010/.clang-uml b/tests/t00010/.clang-uml new file mode 100644 index 00000000..1388e6f1 --- /dev/null +++ b/tests/t00010/.clang-uml @@ -0,0 +1,12 @@ +compilation_database_dir: .. +output_directory: puml +diagrams: + t00010_class: + type: class + glob: + - ../../tests/t00010/t00010.cc + using_namespace: + - clanguml::t00010 + include: + namespaces: + - clanguml::t00010 diff --git a/tests/t00011/.clang-uml b/tests/t00011/.clang-uml new file mode 100644 index 00000000..69ef8449 --- /dev/null +++ b/tests/t00011/.clang-uml @@ -0,0 +1,12 @@ +compilation_database_dir: .. +output_directory: puml +diagrams: + t00011_class: + type: class + glob: + - ../../tests/t00011/t00011.cc + using_namespace: + - clanguml::t00011 + include: + namespaces: + - clanguml::t00011 diff --git a/tests/t00012/.clang-uml b/tests/t00012/.clang-uml new file mode 100644 index 00000000..a841c472 --- /dev/null +++ b/tests/t00012/.clang-uml @@ -0,0 +1,15 @@ +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>>>,3,3,3>) : Long template annotation' diff --git a/tests/t00013/.clang-uml b/tests/t00013/.clang-uml new file mode 100644 index 00000000..0b71bf39 --- /dev/null +++ b/tests/t00013/.clang-uml @@ -0,0 +1,13 @@ +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 diff --git a/tests/t00014/.clang-uml b/tests/t00014/.clang-uml new file mode 100644 index 00000000..2534f83f --- /dev/null +++ b/tests/t00014/.clang-uml @@ -0,0 +1,16 @@ +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 diff --git a/tests/t00015/.clang-uml b/tests/t00015/.clang-uml new file mode 100644 index 00000000..38a6ceb5 --- /dev/null +++ b/tests/t00015/.clang-uml @@ -0,0 +1,12 @@ +compilation_database_dir: .. +output_directory: puml +diagrams: + t00015_class: + type: class + glob: + - ../../tests/t00015/t00015.cc + using_namespace: + - clanguml::t00015 + include: + namespaces: + - clanguml::t00015 diff --git a/tests/t00016/.clang-uml b/tests/t00016/.clang-uml new file mode 100644 index 00000000..31881559 --- /dev/null +++ b/tests/t00016/.clang-uml @@ -0,0 +1,12 @@ +compilation_database_dir: .. +output_directory: puml +diagrams: + t00016_class: + type: class + glob: + - ../../tests/t00016/t00016.cc + using_namespace: + - clanguml::t00016 + include: + namespaces: + - clanguml::t00016 diff --git a/tests/t00017/.clang-uml b/tests/t00017/.clang-uml new file mode 100644 index 00000000..e6942ec3 --- /dev/null +++ b/tests/t00017/.clang-uml @@ -0,0 +1,13 @@ +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 diff --git a/tests/t00018/.clang-uml b/tests/t00018/.clang-uml new file mode 100644 index 00000000..e3692346 --- /dev/null +++ b/tests/t00018/.clang-uml @@ -0,0 +1,13 @@ +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 diff --git a/tests/t00019/.clang-uml b/tests/t00019/.clang-uml new file mode 100644 index 00000000..16412e73 --- /dev/null +++ b/tests/t00019/.clang-uml @@ -0,0 +1,18 @@ +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)' + - '@A(Layer3) <|-- @A(Layer2)' + - '@A(Layer2) <|-- @A(Layer1)' diff --git a/tests/t00020/.clang-uml b/tests/t00020/.clang-uml new file mode 100644 index 00000000..fcd04dcd --- /dev/null +++ b/tests/t00020/.clang-uml @@ -0,0 +1,18 @@ +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)' diff --git a/tests/t00021/.clang-uml b/tests/t00021/.clang-uml new file mode 100644 index 00000000..0f7c063a --- /dev/null +++ b/tests/t00021/.clang-uml @@ -0,0 +1,12 @@ +compilation_database_dir: .. +output_directory: puml +diagrams: + t00021_class: + type: class + glob: + - ../../tests/t00021/t00021.cc + using_namespace: + - clanguml::t00021 + include: + namespaces: + - clanguml::t00021 diff --git a/tests/t00022/.clang-uml b/tests/t00022/.clang-uml new file mode 100644 index 00000000..6cebb830 --- /dev/null +++ b/tests/t00022/.clang-uml @@ -0,0 +1,12 @@ +compilation_database_dir: .. +output_directory: puml +diagrams: + t00022_class: + type: class + glob: + - ../../tests/t00022/t00022.cc + using_namespace: + - clanguml::t00022 + include: + namespaces: + - clanguml::t00022 diff --git a/tests/t00023/.clang-uml b/tests/t00023/.clang-uml new file mode 100644 index 00000000..90645897 --- /dev/null +++ b/tests/t00023/.clang-uml @@ -0,0 +1,12 @@ +compilation_database_dir: .. +output_directory: puml +diagrams: + t00023_class: + type: class + glob: + - ../../tests/t00023/t00023.cc + using_namespace: + - clanguml::t00023 + include: + namespaces: + - clanguml::t00023 diff --git a/tests/t00024/.clang-uml b/tests/t00024/.clang-uml new file mode 100644 index 00000000..f8750c86 --- /dev/null +++ b/tests/t00024/.clang-uml @@ -0,0 +1,12 @@ +compilation_database_dir: .. +output_directory: puml +diagrams: + t00024_class: + type: class + glob: + - ../../tests/t00024/t00024.cc + using_namespace: + - clanguml::t00024 + include: + namespaces: + - clanguml::t00024 diff --git a/tests/t00025/.clang-uml b/tests/t00025/.clang-uml new file mode 100644 index 00000000..4a32003c --- /dev/null +++ b/tests/t00025/.clang-uml @@ -0,0 +1,12 @@ +compilation_database_dir: .. +output_directory: puml +diagrams: + t00025_class: + type: class + glob: + - ../../tests/t00025/t00025.cc + using_namespace: + - clanguml::t00025 + include: + namespaces: + - clanguml::t00025 diff --git a/tests/t00026/.clang-uml b/tests/t00026/.clang-uml new file mode 100644 index 00000000..33224cee --- /dev/null +++ b/tests/t00026/.clang-uml @@ -0,0 +1,12 @@ +compilation_database_dir: .. +output_directory: puml +diagrams: + t00026_class: + type: class + glob: + - ../../tests/t00026/t00026.cc + using_namespace: + - clanguml::t00026 + include: + namespaces: + - clanguml::t00026 diff --git a/tests/t00027/.clang-uml b/tests/t00027/.clang-uml new file mode 100644 index 00000000..27103b8e --- /dev/null +++ b/tests/t00027/.clang-uml @@ -0,0 +1,12 @@ +compilation_database_dir: .. +output_directory: puml +diagrams: + t00027_class: + type: class + glob: + - ../../tests/t00027/t00027.cc + using_namespace: + - clanguml::t00027 + include: + namespaces: + - clanguml::t00027 diff --git a/tests/t20001/.clang-uml b/tests/t20001/.clang-uml new file mode 100644 index 00000000..2748c867 --- /dev/null +++ b/tests/t20001/.clang-uml @@ -0,0 +1,22 @@ +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' diff --git a/tests/t90000/.clang-uml b/tests/t90000/.clang-uml new file mode 100644 index 00000000..86079718 --- /dev/null +++ b/tests/t90000/.clang-uml @@ -0,0 +1,20 @@ +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 {' + - '}'