diff options
| author | Richard Trieu <rtrieu@google.com> | 2013-06-12 21:20:57 +0000 |
|---|---|---|
| committer | Richard Trieu <rtrieu@google.com> | 2013-06-12 21:20:57 +0000 |
| commit | 33a4b3db0de5fbba06264a46f560220b5f8f11a8 (patch) | |
| tree | be7f0fa608cba875aadb51581141eb56cff06290 /clang/test/Lexer/Inputs/bad-header-guard.h | |
| parent | 2bb2aa27bfe729aa6d60b17cfafeaa959c7ea050 (diff) | |
| download | bcm5719-llvm-33a4b3db0de5fbba06264a46f560220b5f8f11a8.tar.gz bcm5719-llvm-33a4b3db0de5fbba06264a46f560220b5f8f11a8.zip | |
Introducing -Wheader-guard, a warning that checks header guards actually work
properly. This warning checks that the #ifndef and #define directives at
the beginning of a header refer to the same macro name. Includes a fix-it
hint to correct the header guard.
llvm-svn: 183867
Diffstat (limited to 'clang/test/Lexer/Inputs/bad-header-guard.h')
| -rw-r--r-- | clang/test/Lexer/Inputs/bad-header-guard.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Lexer/Inputs/bad-header-guard.h b/clang/test/Lexer/Inputs/bad-header-guard.h new file mode 100644 index 00000000000..601da093272 --- /dev/null +++ b/clang/test/Lexer/Inputs/bad-header-guard.h @@ -0,0 +1,4 @@ +#ifndef bad_header_guard +#define bad_guard + +#endif |

