We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 319681d commit 7570870Copy full SHA for 7570870
clang-tools-extra/docs/clang-tidy/checks/portability/avoid-pragma-once.rst
@@ -13,7 +13,7 @@ some environments.
13
Some older or specialized C/C++ compilers, particularly in embedded systems,
14
may not fully support ``#pragma once``.
15
16
-It can also fail in certain file system configurations,like network drives
+It can also fail in certain file system configurations, like network drives
17
or complex symbolic links, potentially leading to compilation issues.
18
19
Consider the following header file:
@@ -29,7 +29,7 @@ The warning suggests using include guards:
29
.. code:: c++
30
31
// my_header.h
32
- #ifndef PATH_TO_MY_HEADER_H
+ #ifndef PATH_TO_MY_HEADER_H // Good: use include guards.
33
#define PATH_TO_MY_HEADER_H
34
35
#endif // PATH_TO_MY_HEADER_H
0 commit comments