You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/sphinx/source/libCEEDdev.md
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -30,15 +30,17 @@ run on a single file, use
30
30
31
31
for example. All issues reported by `make tidy` should be fixed.
32
32
33
-
## Header Files
33
+
## Include-What-You-Use
34
34
35
35
Header inclusion for source files should follow the principal of 'include what you use' rather than relying upon transitive `#include` to define all symbols.
36
36
37
-
Every symbol that is used in the source file `foo.c` should be defined in `foo.c`, `foo.h`, or in a header file ``` #include``d in one of these two locations.
38
-
Please check your code by running the tool ``include-what-you-use ``` to see recommendations for changes to your source.
37
+
Every symbol that is used in the source file `foo.c` should be defined in `foo.c`, `foo.h`, or in a header file `#include`d in one of these two locations.
38
+
Please check your code by running the tool [`include-what-you-use`](https://include-what-you-use.org/) to see recommendations for changes to your source.
39
39
Most issues reported by `include-what-you-use` should be fixed; however this rule is flexible to account for differences in header file organization in external libraries.
40
+
If you have `include-what-you-use` installed in a sibling directory to libCEED, then you can use the makefile target `make iwyu`.
40
41
41
42
Header files should be listed in alphabetical order, with installed headers preceding local headers and `ceed` headers being listed first.
43
+
The `ceed-f64.h` and `ceed-f32.h` headers should only be included in `ceed.h`.
0 commit comments