Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
apenn-msft authored Oct 10, 2023
1 parent 9f38cb2 commit 518c0d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CppCoreGuidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -19648,12 +19648,13 @@ To maximize the portability of `#include` directives across compilers, guidance
// good examples
#include <vector>
#include <string>
#include "utils/utils.h"
#include "foo_utils/utils.h"

// bad examples
// #include <VECTOR> // the standard library defines a header identified as <vector>, not <VECTOR>
// #include <String> // the standard library defines a header identified as <string>, not <String>
// #include "utils\utils.h" // may not work if `\u` is interpreted as an escape sequence, or on a system where `\` is not a valid path separator
// #include "foo_utils\utils.h" // may not work if `\u` is interpreted as an escape sequence, or on a system where `\` is not a valid path separator
// #include "Foo_Utils/Utils.H" // the header file as it exists on the file system is "foo_utils/utils.h"

##### Enforcement

Expand Down

0 comments on commit 518c0d1

Please sign in to comment.