From 2353eb0e9214367321988cc678ad71fc8b2f4b5e Mon Sep 17 00:00:00 2001 From: peter klausler Date: Mon, 5 Feb 2018 15:53:17 -0800 Subject: [PATCH] [flang] More Markdown fixes. Original-commit: flang-compiler/f18@7097566fa5451901bd2d945ea30e0f82e98ec4ae --- flang/c++style.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/flang/c++style.md b/flang/c++style.md index 6f10424..ef94cf8 100755 --- a/flang/c++style.md +++ b/flang/c++style.md @@ -11,10 +11,12 @@ extension ".cc", not ".C" or ".cpp" or ".cxx". Don't create needless source directory hierarchies. 1. Header files should be idempotent: + 1. #ifndef FORTRAN_headername_H_ 1. #define FORTRAN_headername_H_ 1. // code 1. #endif // FORTRAN_headername_H_ + 1. #include every header defining an entity that your project header or source file actually uses directly. (Exception: when foo.cc starts, as it should, with #include "foo.h", and foo.h includes bar.h in order to define the @@ -24,8 +26,8 @@ in foo.cc.) 1. #include "foo.h" // this module's interface comes first 1. #include "armadillo.h" // other modules in this project, alphabetically 1. #include "zebra.h" - 1. #include <> // C++ standard headers, alphabetically - 1. #include <> + 1. #include // C++ standard headers, alphabetically + 1. #include 1. #include // C headers, alphabetically ### Naming 1. C++ names that correspond to STL names should look like those STL names -- 2.7.4