@@ -57,7 +57,7 @@ The syntax is simple and based on glob patterns, which can be added to the confi
57
57
58
58
The glob patterns only need to match the translation units, which are also in the ` compile_commands.json` file, i.e.
59
59
any files that match the glob patterns but are not in `compile_commands.json` will be ignored. In case the `glob`
60
- pattern set does not much any translation units an error will be printed on the standard output.
60
+ pattern set does not match any translation units an error will be printed on the standard output.
61
61
62
62
For small projects, the `glob` property can be omitted, which will result in `clang-uml` parsing all translation units
63
63
from `compile_commands.json` for the diagram. However for large projects, constraining the number of translation units
@@ -96,13 +96,14 @@ specific diagram element.
96
96
97
97
# # Resolving include path and compiler flags issues
98
98
Due to the fact, that your project can be compiled with different compilers
99
- and toolchains than the Clang version, which `clang-uml` uses on your platform,
100
- include paths specified in the generated `compile_commands.json` can be incorrect.
99
+ and toolchains, the system paths and compilation flags detected by the Clang
100
+ version linked to your `clang-uml` installation might differ from the ones
101
+ actually used to compile your project.
101
102
102
103
> This is often an issue on macOS, when `clang-uml` uses Homebrew version of LLVM
103
104
> and your project was built using system Apple Clang
104
105
105
- Typically, this results in ugly error messages on the screen during diagram
106
+ Typically, this results in error messages on the console during diagram
106
107
generation, such as :
107
108
108
109
` ` `
@@ -154,15 +155,15 @@ already as `argv[0]` in your `compile_commands.json`, you can simply invoke
154
155
clang-uml --query-driver .
155
156
```
156
157
157
- however please make sure that the ` compile_commands.json ` contain a command,
158
+ however please make sure that the ` compile_commands.json ` contains a command,
158
159
which is safe to execute.
159
160
160
161
### Manually add and remove compile flags from the compilation database
161
162
If the system paths extracted from the compiler are not sufficient to resolve
162
163
include paths issues, it is possible to manually adjust the compilation
163
- flags providing ` add_compile_flags ` and ` remove_compile_flags ` in the
164
+ flags by providing ` add_compile_flags ` and ` remove_compile_flags ` in the
164
165
configuration file, or providing ` --add-compile-flag ` and ` --remove-compile-flag `
165
- in the ` clang-uml ` command line.
166
+ on the ` clang-uml ` command line.
166
167
167
168
For instance:
168
169
0 commit comments