[doc] Describe the header guard style

clang-tidy's llvm-header-guard rule references the LLVM style - where it's
missing.

Differential Revision: https://reviews.llvm.org/D84989
This commit is contained in:
Mircea Trofin 2020-07-30 16:08:06 -07:00
parent a32af8252f
commit abb8128237
1 changed files with 10 additions and 0 deletions

View File

@ -174,6 +174,16 @@ used as an abstract. Any additional information should be separated by a blank
line. If an algorithm is based on a paper or is described in another source, line. If an algorithm is based on a paper or is described in another source,
provide a reference. provide a reference.
Header Guard
""""""""""""
The header file's guard should be the all-caps path that a user of this header
would #include, using '_' instead of path separator and extension marker.
For example, the header file
``llvm/include/llvm/Analysis/Utils/Local.h`` would be ``#include``-ed as
``#include "llvm/Analysis/Utils/Local.h"``, so its guard is
``LLVM_ANALYSIS_UTILS_LOCAL_H``.
Class overviews Class overviews
""""""""""""""" """""""""""""""