diff options
author | Ismail Pazarbasi <ismail.pazarbasi@gmail.com> | 2013-10-12 23:17:37 +0000 |
---|---|---|
committer | Ismail Pazarbasi <ismail.pazarbasi@gmail.com> | 2013-10-12 23:17:37 +0000 |
commit | 223e7a8b0fadbbc9eaea1fb460cd90c8d9c8dd28 (patch) | |
tree | 465737d3ff1f531cb4bab6efb8c9c932ddefc5dc /test/Lexer/Inputs | |
parent | aabfb2712e180bb11e5dfc4f2a273890a6c5da66 (diff) | |
download | clang-223e7a8b0fadbbc9eaea1fb460cd90c8d9c8dd28.tar.gz |
Relax header guard mismatch warning with edit distance heuristic.
If the edit distance between the two macros is more than 50%, DefinedMacro may not be header guard or can be header guard of another header file or it might be defining something completely different set by the build environment.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192547 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Lexer/Inputs')
-rw-r--r-- | test/Lexer/Inputs/unlikely-to-be-header-guard.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Lexer/Inputs/unlikely-to-be-header-guard.h b/test/Lexer/Inputs/unlikely-to-be-header-guard.h new file mode 100644 index 0000000000..098fc3cb7a --- /dev/null +++ b/test/Lexer/Inputs/unlikely-to-be-header-guard.h @@ -0,0 +1,5 @@ +#ifndef data_rep_h +#define use_alternate_data_rep +/* #include "data_rep.h" */ +#endif + |