summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorMark Zeren <mzeren@vmware.com>2018-02-05 14:47:04 +0000
committerMark Zeren <mzeren@vmware.com>2018-02-05 14:47:04 +0000
commitb0cc6ed29c1924685320d8a448626a9c6cf9d686 (patch)
tree1340cbf20aee6a0fd275aeb29ca79c025b7f6211 /clang/unittests/Format/FormatTest.cpp
parent0dc13cdcae09b3691b60ed6255cd24be32cc96c1 (diff)
downloadbcm5719-llvm-b0cc6ed29c1924685320d8a448626a9c6cf9d686.tar.gz
bcm5719-llvm-b0cc6ed29c1924685320d8a448626a9c6cf9d686.zip
Revert "[clang-format] Fixup #include guard indents after parseFile()"
This reverts r324238 | mzeren-vmw | 2018-02-05 06:35:54 -0800 (Mon, 05 Feb 2018) | 35 lines Incorrect version pushed upstream. llvm-svn: 324239
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r--clang/unittests/Format/FormatTest.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index e5e8fde64c9..cbabc459c4d 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -2547,20 +2547,6 @@ TEST_F(FormatTest, IndentPreprocessorDirectives) {
"#elif FOO\n"
"#endif",
Style);
- // Non-identifier #define after potential include guard.
- verifyFormat("#ifndef FOO\n"
- "# define 1\n"
- "#endif\n",
- Style);
- // #if closes past last non-preprocessor line.
- verifyFormat("#ifndef FOO\n"
- "#define FOO\n"
- "#if 1\n"
- "int i;\n"
- "# define A 0\n"
- "#endif\n"
- "#endif\n",
- Style);
// FIXME: This doesn't handle the case where there's code between the
// #ifndef and #define but all other conditions hold. This is because when
// the #define line is parsed, UnwrappedLineParser::Lines doesn't hold the
OpenPOWER on IntegriCloud