[PATCH] D84989: [doc] Describe the header guard style
Mircea Trofin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 30 16:08:24 PDT 2020
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGabb812823701: [doc] Describe the header guard style (authored by mtrofin).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D84989/new/
https://reviews.llvm.org/D84989
Files:
llvm/docs/CodingStandards.rst
Index: llvm/docs/CodingStandards.rst
===================================================================
--- llvm/docs/CodingStandards.rst
+++ llvm/docs/CodingStandards.rst
@@ -174,6 +174,16 @@
line. If an algorithm is based on a paper or is described in another source,
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
"""""""""""""""
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84989.282075.patch
Type: text/x-patch
Size: 722 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200730/36b7fd7b/attachment.bin>
More information about the llvm-commits
mailing list